home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1988-08-01 | 13.9 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: TubeTest.p
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| bsdiff patch (other/bsdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| imgdiff patch (other/imgdiffPatch)
| ext
| Unsupported |
1%
| dexvert
| WSUS Patch Storage File (other/wsusPatchStorageFile)
| ext
| Unsupported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Aug 1 18:08:18 1988, modified Mon Aug 1 18:08:18 1988, creator 'MPS ', type ASCII, 13600 bytes "TubeTest.p" , at 0x35a0 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 54 75 62 65 54 65 | 73 74 2e 70 00 00 00 00 |..TubeTe|st.p....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 35 20 00 | 00 01 7e 9f 1a 9c 52 9f |.....5 .|..~...R.|
|00000060| 1a 9c 52 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..R.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 37 73 00 00 |........|....7s..|
|00000080| 7b 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |{-------|--------|
|00000090| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|000000d0| 23 0d 23 09 4d 61 63 69 | 6e 74 6f 73 68 20 44 65 |#.#.Maci|ntosh De|
|000000e0| 76 65 6c 6f 70 65 72 20 | 54 65 63 68 6e 69 63 61 |veloper |Technica|
|000000f0| 6c 20 53 75 70 70 6f 72 | 74 0d 23 0d 23 09 53 69 |l Suppor|t.#.#.Si|
|00000100| 6d 70 6c 65 20 43 6f 6c | 6f 72 20 51 75 69 63 6b |mple Col|or Quick|
|00000110| 44 72 61 77 20 41 6e 69 | 6d 61 74 69 6f 6e 20 53 |Draw Ani|mation S|
|00000120| 61 6d 70 6c 65 20 41 70 | 70 6c 69 63 61 74 69 6f |ample Ap|plicatio|
|00000130| 6e 0d 23 0d 23 09 54 75 | 62 65 54 65 73 74 0d 23 |n.#.#.Tu|beTest.#|
|00000140| 0d 23 09 54 75 62 65 54 | 65 73 74 2e 70 09 2d 09 |.#.TubeT|est.p.-.|
|00000150| 50 61 73 63 61 6c 20 53 | 6f 75 72 63 65 0d 23 0d |Pascal S|ource.#.|
|00000160| 23 09 43 6f 70 79 72 69 | 67 68 74 20 a9 20 31 39 |#.Copyri|ght . 19|
|00000170| 38 38 20 41 70 70 6c 65 | 20 43 6f 6d 70 75 74 65 |88 Apple| Compute|
|00000180| 72 2c 20 49 6e 63 2e 0d | 23 09 41 6c 6c 20 72 69 |r, Inc..|#.All ri|
|00000190| 67 68 74 73 20 72 65 73 | 65 72 76 65 64 2e 0d 23 |ghts res|erved..#|
|000001a0| 0d 23 09 56 65 72 73 69 | 6f 6e 73 3a 09 31 2e 30 |.#.Versi|ons:.1.0|
|000001b0| 09 09 09 09 09 38 2f 38 | 38 0d 23 0d 23 09 43 6f |.....8/8|8.#.#.Co|
|000001c0| 6d 70 6f 6e 65 6e 74 73 | 3a 09 54 75 62 65 54 65 |mponents|:.TubeTe|
|000001d0| 73 74 2e 70 09 09 09 41 | 75 67 75 73 74 20 31 2c |st.p...A|ugust 1,|
|000001e0| 20 31 39 38 38 0d 23 09 | 09 09 09 54 75 62 65 54 | 1988.#.|...TubeT|
|000001f0| 65 73 74 2e 63 09 09 09 | 41 75 67 75 73 74 20 31 |est.c...|August 1|
|00000200| 2c 20 31 39 38 38 0d 23 | 09 09 09 09 54 75 62 65 |, 1988.#|....Tube|
|00000210| 54 65 73 74 2e 72 09 09 | 09 41 75 67 75 73 74 20 |Test.r..|.August |
|00000220| 31 2c 20 31 39 38 38 0d | 23 09 09 09 09 50 54 75 |1, 1988.|#....PTu|
|00000230| 62 65 54 65 73 74 2e 6d | 61 6b 65 09 09 41 75 67 |beTest.m|ake..Aug|
|00000240| 75 73 74 20 31 2c 20 31 | 39 38 38 0d 23 09 09 09 |ust 1, 1|988.#...|
|00000250| 09 43 54 75 62 65 54 65 | 73 74 2e 6d 61 6b 65 09 |.CTubeTe|st.make.|
|00000260| 09 41 75 67 75 73 74 20 | 31 2c 20 31 39 38 38 0d |.August |1, 1988.|
|00000270| 23 0d 23 09 54 68 65 20 | 54 75 62 65 54 65 73 74 |#.#.The |TubeTest|
|00000280| 20 70 72 6f 67 72 61 6d | 20 69 73 20 61 20 73 69 | program| is a si|
|00000290| 6d 70 6c 65 20 64 65 6d | 6f 6e 73 74 72 61 74 69 |mple dem|onstrati|
|000002a0| 6f 6e 20 6f 66 20 68 6f | 77 20 74 6f 20 75 73 65 |on of ho|w to use|
|000002b0| 20 74 68 65 20 50 61 6c | 65 74 74 65 20 0d 23 09 | the Pal|ette .#.|
|000002c0| 4d 61 6e 61 67 65 72 20 | 69 6e 20 61 20 63 6f 6c |Manager |in a col|
|000002d0| 6f 72 20 70 72 6f 67 72 | 61 6d 2e 20 20 49 74 20 |or progr|am. It |
|000002e0| 68 61 73 20 61 20 73 70 | 65 63 69 61 6c 20 63 6f |has a sp|ecial co|
|000002f0| 6c 6f 72 20 70 61 6c 65 | 74 74 65 20 74 68 61 74 |lor pale|tte that|
|00000300| 20 69 73 20 61 73 73 6f | 63 69 61 74 65 64 0d 23 | is asso|ciated.#|
|00000310| 09 77 69 74 68 20 74 68 | 65 20 6d 61 69 6e 20 77 |.with th|e main w|
|00000320| 69 6e 64 6f 77 2e 20 20 | 54 68 65 20 63 6f 6c 6f |indow. |The colo|
|00000330| 72 73 20 61 72 65 20 61 | 6e 69 6d 61 74 65 64 20 |rs are a|nimated |
|00000340| 75 73 69 6e 67 20 74 68 | 65 20 50 61 6c 65 74 74 |using th|e Palett|
|00000350| 65 20 4d 61 6e 61 67 65 | 72 20 0d 23 09 74 6f 20 |e Manage|r .#.to |
|00000360| 67 69 76 65 20 61 20 66 | 6c 6f 77 69 6e 67 20 74 |give a f|lowing t|
|00000370| 75 62 65 20 65 66 66 65 | 63 74 2e 20 20 54 68 65 |ube effe|ct. The|
|00000380| 20 70 72 6f 67 72 61 6d | 20 69 73 20 76 65 72 79 | program| is very|
|00000390| 20 73 69 6d 70 6c 65 2c | 20 61 6e 64 20 74 68 65 | simple,| and the|
|000003a0| 20 50 61 6c 65 74 74 65 | 0d 23 09 4d 61 6e 61 67 | Palette|.#.Manag|
|000003b0| 65 72 20 61 6e 64 20 64 | 72 61 77 69 6e 67 20 70 |er and d|rawing p|
|000003c0| 61 72 74 73 20 61 72 65 | 20 70 75 74 20 69 6e 20 |arts are| put in |
|000003d0| 73 65 70 61 72 61 74 65 | 20 73 75 62 72 6f 75 74 |separate| subrout|
|000003e0| 69 6e 65 73 20 74 6f 20 | 6d 61 6b 65 20 69 74 20 |ines to |make it |
|000003f0| 65 61 73 69 65 72 0d 23 | 09 74 6f 20 66 69 67 75 |easier.#|.to figu|
|00000400| 72 65 20 6f 75 74 20 77 | 68 61 74 20 69 73 20 68 |re out w|hat is h|
|00000410| 61 70 70 65 6e 69 6e 67 | 2e 0d 23 09 0d 23 09 54 |appening|..#..#.T|
|00000420| 68 65 20 70 72 6f 67 72 | 61 6d 20 69 73 20 73 74 |he progr|am is st|
|00000430| 69 6c 6c 20 61 20 63 6f | 6d 70 6c 65 74 65 20 4d |ill a co|mplete M|
|00000440| 61 63 69 6e 74 6f 73 68 | 20 61 70 70 6c 69 63 61 |acintosh| applica|
|00000450| 74 69 6f 6e 20 77 69 74 | 68 20 61 20 4d 61 69 6e |tion wit|h a Main|
|00000460| 20 45 76 65 6e 74 20 4c | 6f 6f 70 2c 0d 23 09 73 | Event L|oop,.#.s|
|00000470| 6f 20 74 68 65 72 65 20 | 69 73 20 74 68 65 20 65 |o there |is the e|
|00000480| 78 74 72 61 20 63 6f 64 | 65 20 74 6f 20 72 75 6e |xtra cod|e to run|
|00000490| 20 74 68 65 20 4d 45 4c | 2e 20 20 0d 23 09 0d 23 | the MEL|. .#..#|
|000004a0| 09 54 68 65 72 65 20 69 | 73 20 61 20 72 65 73 6f |.There i|s a reso|
|000004b0| 75 72 63 65 20 66 69 6c | 65 20 74 68 61 74 20 69 |urce fil|e that i|
|000004c0| 73 20 6e 65 63 65 73 73 | 61 72 79 20 61 73 20 77 |s necess|ary as w|
|000004d0| 65 6c 6c 2c 20 74 6f 20 | 64 65 66 69 6e 65 20 74 |ell, to |define t|
|000004e0| 68 65 20 4d 65 6e 75 73 | 2c 20 57 69 6e 64 6f 77 |he Menus|, Window|
|000004f0| 2c 0d 23 09 44 69 61 6c | 6f 67 2c 20 61 6e 64 20 |,.#.Dial|og, and |
|00000500| 50 61 6c 65 74 74 65 20 | 72 65 73 6f 75 72 63 65 |Palette |resource|
|00000510| 73 20 75 73 65 64 20 69 | 6e 20 74 68 65 20 70 72 |s used i|n the pr|
|00000520| 6f 67 72 61 6d 2e 20 20 | 0d 23 0d 23 09 53 65 65 |ogram. |.#.#.See|
|00000530| 20 53 61 6d 70 6c 65 20 | 61 6e 64 20 54 45 53 61 | Sample |and TESa|
|00000540| 6d 70 6c 65 20 66 6f 72 | 20 74 68 65 20 67 65 6e |mple for| the gen|
|00000550| 65 72 61 6c 20 73 74 72 | 75 63 74 75 72 65 20 61 |eral str|ucture a|
|00000560| 6e 64 20 4d 75 6c 74 69 | 46 69 6e 64 65 72 20 74 |nd Multi|Finder t|
|00000570| 65 63 68 6e 69 71 75 65 | 73 20 74 68 61 74 0d 23 |echnique|s that.#|
|00000580| 09 77 65 20 72 65 63 6f | 6d 6d 65 6e 64 20 74 68 |.we reco|mmend th|
|00000590| 61 74 20 79 6f 75 20 75 | 73 65 20 77 68 65 6e 20 |at you u|se when |
|000005a0| 62 75 69 6c 64 69 6e 67 | 20 61 20 6e 65 77 20 61 |building| a new a|
|000005b0| 70 70 6c 69 63 61 74 69 | 6f 6e 2e 0d 23 0d 2d 2d |pplicati|on..#.--|
|000005c0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000600| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 7d 0d 0d 50 |--------|----}..P|
|00000610| 52 4f 47 52 41 4d 20 54 | 75 62 65 54 65 73 74 3b |ROGRAM T|ubeTest;|
|00000620| 0d 20 28 2a 0d 09 46 69 | 6c 65 20 54 75 62 65 54 |. (*..Fi|le TubeT|
|00000630| 65 73 74 2e 70 0d 0d 09 | 56 65 72 73 69 6f 6e 20 |est.p...|Version |
|00000640| 31 2e 30 3a 20 36 2f 32 | 2f 38 38 0d 09 0d 09 34 |1.0: 6/2|/88....4|
|00000650| 2f 31 39 2f 38 38 3a 0d | 09 54 75 62 65 54 65 73 |/19/88:.|.TubeTes|
|00000660| 74 20 2d 2d 20 41 20 73 | 6d 61 6c 6c 20 73 61 6d |t -- A s|mall sam|
|00000670| 70 6c 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ple appl|ication |
|00000680| 77 72 69 74 74 65 6e 20 | 62 79 20 42 6f 33 62 20 |written |by Bo3b |
|00000690| 4a 6f 68 6e 73 6f 6e 2e | 0d 09 54 68 65 20 69 64 |Johnson.|..The id|
|000006a0| 65 61 20 69 73 20 74 6f | 20 64 72 61 77 20 74 77 |ea is to| draw tw|
|000006b0| 6f 20 63 69 72 63 6c 65 | 73 20 69 6e 20 76 61 72 |o circle|s in var|
|000006c0| 79 69 6e 67 20 63 6f 6c | 6f 72 73 20 69 6e 20 74 |ying col|ors in t|
|000006d0| 68 65 20 77 69 6e 64 6f | 77 2c 20 74 68 65 6e 0d |he windo|w, then.|
|000006e0| 09 61 6e 69 6d 61 74 65 | 20 74 68 65 20 63 6f 6c |.animate| the col|
|000006f0| 6f 72 73 20 77 68 65 6e | 20 74 68 65 20 6d 65 6e |ors when| the men|
|00000700| 75 20 69 73 20 63 68 6f | 73 65 6e 2e 09 54 68 69 |u is cho|sen..Thi|
|00000710| 73 20 69 73 20 61 20 63 | 6f 6d 70 6c 65 74 65 20 |s is a c|omplete |
|00000720| 70 72 6f 67 72 61 6d 0d | 09 77 69 74 68 20 65 76 |program.|.with ev|
|00000730| 65 6e 74 20 6c 6f 6f 70 | 20 61 6e 64 20 65 76 65 |ent loop| and eve|
|00000740| 72 79 74 68 69 6e 67 2e | 09 49 74 20 69 73 20 69 |rything.|.It is i|
|00000750| 6e 74 65 6e 64 65 64 20 | 74 6f 20 62 65 20 61 20 |ntended |to be a |
|00000760| 73 69 6d 70 6c 65 20 65 | 78 61 6d 70 6c 65 20 6f |simple e|xample o|
|00000770| 66 0d 09 68 6f 77 20 74 | 6f 20 75 73 65 20 74 68 |f..how t|o use th|
|00000780| 65 20 50 61 6c 65 74 74 | 65 20 4d 61 6e 61 67 65 |e Palett|e Manage|
|00000790| 72 20 74 6f 20 64 6f 20 | 73 6f 6d 65 20 6d 69 6e |r to do |some min|
|000007a0| 6f 72 20 63 6f 6c 6f 72 | 20 61 6e 69 6d 61 74 69 |or color| animati|
|000007b0| 6f 6e 2c 20 61 6e 64 0d | 09 68 6f 77 20 74 6f 20 |on, and.|.how to |
|000007c0| 75 73 65 20 74 68 65 20 | 50 4d 20 74 6f 20 73 65 |use the |PM to se|
|000007d0| 74 20 75 70 20 74 68 65 | 20 63 6f 6c 6f 72 73 20 |t up the| colors |
|000007e0| 64 65 73 69 72 65 64 20 | 69 6e 20 61 20 77 69 6e |desired |in a win|
|000007f0| 64 6f 77 2e 0d 09 0d 09 | 41 6c 73 6f 20 73 65 65 |dow.....|Also see|
|00000800| 20 74 68 65 20 72 65 73 | 6f 75 72 63 65 20 66 69 | the res|ource fi|
|00000810| 6c 65 20 74 68 61 74 20 | 67 6f 65 73 20 77 69 74 |le that |goes wit|
|00000820| 68 20 74 68 69 73 20 74 | 6f 20 73 65 65 20 68 6f |h this t|o see ho|
|00000830| 77 20 74 68 65 20 50 61 | 6c 65 74 74 65 20 0d 09 |w the Pa|lette ..|
|00000840| 69 74 73 65 6c 66 20 69 | 73 20 6c 61 79 65 64 20 |itself i|s layed |
|00000850| 6f 75 74 2e 0d 09 0d 09 | 43 6f 75 6c 64 20 62 65 |out.....|Could be|
|00000860| 20 62 75 69 6c 74 20 77 | 69 74 68 20 73 6f 6d 65 | built w|ith some|
|00000870| 74 68 69 6e 67 20 6c 69 | 6b 65 20 74 68 69 73 3a |thing li|ke this:|
|00000880| 0d 09 09 72 65 7a 20 54 | 75 62 65 54 65 73 74 2e |...rez T|ubeTest.|
|00000890| 72 20 2d 6f 20 54 75 62 | 65 54 65 73 74 0d 09 09 |r -o Tub|eTest...|
|000008a0| 70 61 73 63 61 6c 20 54 | 75 62 65 54 65 73 74 2e |pascal T|ubeTest.|
|000008b0| 70 0d 09 09 4c 69 6e 6b | 20 54 75 62 65 54 65 73 |p...Link| TubeTes|
|000008c0| 74 2e 70 2e 6f 20 b6 0d | 09 09 09 22 7b 4d 50 57 |t.p.o ..|..."{MPW|
|000008d0| 7d 4c 69 62 72 61 72 69 | 65 73 3a 22 49 6e 74 65 |}Librari|es:"Inte|
|000008e0| 72 66 61 63 65 2e 6f 20 | b6 0d 09 09 09 22 7b 4d |rface.o |....."{M|
|000008f0| 50 57 7d 4c 69 62 72 61 | 72 69 65 73 3a 22 52 75 |PW}Libra|ries:"Ru|
|00000900| 6e 74 69 6d 65 2e 6f 20 | b6 0d 09 09 09 22 7b 4d |ntime.o |....."{M|
|00000910| 50 57 7d 50 4c 69 62 72 | 61 72 69 65 73 3a 22 50 |PW}PLibr|aries:"P|
|00000920| 61 73 6c 69 62 2e 6f 20 | b6 0d 09 09 09 2d 6f 20 |aslib.o |.....-o |
|00000930| 54 75 62 65 54 65 73 74 | 0d 09 09 54 75 62 65 54 |TubeTest|...TubeT|
|00000940| 65 73 74 0d 20 2a 29 0d | 20 0d 20 7b 57 68 65 72 |est. *).| . {Wher|
|00000950| 65 20 64 6f 65 73 20 69 | 74 20 66 69 74 3a 0d 09 |e does i|t fit:..|
|00000960| 54 68 69 73 20 69 73 20 | 61 20 73 65 72 69 65 73 |This is |a series|
|00000970| 20 6f 66 20 73 61 6d 70 | 6c 65 20 70 72 6f 67 72 | of samp|le progr|
|00000980| 61 6d 73 20 66 6f 72 20 | 74 68 6f 73 65 20 64 6f |ams for |those do|
|00000990| 69 6e 67 20 64 65 76 65 | 6c 6f 70 6d 65 6e 74 0d |ing deve|lopment.|
|000009a0| 09 75 73 69 6e 67 20 43 | 6f 6c 6f 72 20 51 75 69 |.using C|olor Qui|
|000009b0| 63 6b 44 72 61 77 2e 20 | 20 53 69 6e 63 65 20 74 |ckDraw. | Since t|
|000009c0| 68 65 20 77 68 6f 6c 65 | 20 63 6f 6c 6f 72 20 70 |he whole| color p|
|000009d0| 72 6f 62 6c 65 6d 20 64 | 65 70 65 6e 64 73 0d 09 |roblem d|epends..|
|000009e0| 75 70 6f 6e 20 74 68 65 | 20 65 78 61 63 74 20 65 |upon the| exact e|
|000009f0| 66 66 65 63 74 20 64 65 | 73 69 72 65 64 2c 20 74 |ffect de|sired, t|
|00000a00| 68 65 72 65 20 61 72 65 | 20 61 20 6e 75 6d 62 65 |here are| a numbe|
|00000a10| 72 20 6f 66 20 61 6e 73 | 77 65 72 73 0d 09 74 6f |r of ans|wers..to|
|00000a20| 20 68 6f 77 20 74 6f 20 | 75 73 65 20 63 6f 6c 6f | how to |use colo|
|00000a30| 72 73 2c 20 66 72 6f 6d | 20 74 68 65 20 73 69 6d |rs, from| the sim|
|00000a40| 70 6c 65 20 74 6f 20 74 | 68 65 20 72 61 64 69 63 |ple to t|he radic|
|00000a50| 61 6c 6c 79 20 63 6f 6d | 70 6c 65 78 2e 0d 09 54 |ally com|plex...T|
|00000a60| 68 65 73 65 20 70 72 6f | 67 72 61 6d 73 20 74 72 |hese pro|grams tr|
|00000a70| 79 20 74 6f 20 63 6f 76 | 65 72 20 74 68 65 20 67 |y to cov|er the g|
|00000a80| 61 6d 75 74 2c 20 73 6f | 20 79 6f 75 20 73 68 6f |amut, so| you sho|
|00000a90| 75 6c 64 20 75 73 65 20 | 0d 09 77 68 69 63 68 20 |uld use |..which |
|00000aa0| 65 76 65 72 20 73 65 65 | 6d 73 20 61 70 70 72 6f |ever see|ms appro|
|00000ab0| 70 72 69 61 74 65 2e 20 | 20 49 6e 20 6d 6f 73 74 |priate. | In most|
|00000ac0| 20 63 61 73 65 73 2c 20 | 75 73 65 20 74 68 65 20 | cases, |use the |
|00000ad0| 73 69 6d 70 6c 65 73 74 | 0d 09 6f 6e 65 20 74 68 |simplest|..one th|
|00000ae0| 61 74 20 77 69 6c 6c 20 | 67 69 76 65 20 74 68 65 |at will |give the|
|00000af0| 20 64 65 73 69 72 65 64 | 20 72 65 73 75 6c 74 73 | desired| results|
|00000b00| 2e 20 20 54 68 65 20 63 | 6f 6d 70 61 74 69 62 69 |. The c|ompatibi|
|00000b10| 6c 69 74 79 0d 09 72 61 | 74 69 6e 67 20 69 73 20 |lity..ra|ting is |
|00000b20| 66 72 6f 6d 20 30 2e 2e | 39 20 77 68 65 72 65 20 |from 0..|9 where |
|00000b30| 6c 6f 77 20 69 73 20 62 | 65 74 74 65 72 2e 20 20 |low is b|etter. |
|00000b40| 54 68 65 20 6d 6f 72 65 | 20 6b 6e 6f 77 6e 20 72 |The more| known r|
|00000b50| 69 73 6b 73 20 0d 09 74 | 68 65 72 65 20 61 72 65 |isks ..t|here are|
|00000b60| 20 74 68 65 20 68 69 67 | 68 65 72 20 74 68 65 20 | the hig|her the |
|00000b70| 72 61 74 69 6e 67 2e 0d | 09 0d 09 0d 09 54 68 65 |rating..|.....The|
|00000b80| 20 70 72 6f 67 72 61 6d | 73 20 28 69 6e 20 6f 72 | program|s (in or|
|00000b90| 64 65 72 20 6f 66 20 63 | 6f 6d 70 61 74 69 62 69 |der of c|ompatibi|
|00000ba0| 6c 69 74 79 29 3a 0d 09 | 0d 09 09 53 69 6c 6c 79 |lity):..|...Silly|
|00000bb0| 42 61 6c 6c 73 3a 0d 09 | 09 09 54 68 69 73 20 69 |Balls:..|..This i|
|00000bc0| 73 20 74 68 65 20 73 69 | 6d 70 6c 65 73 74 20 75 |s the si|mplest u|
|00000bd0| 73 65 20 6f 66 20 43 6f | 6c 6f 72 20 51 75 69 63 |se of Co|lor Quic|
|00000be0| 6b 44 72 61 77 2c 20 61 | 6e 64 20 64 6f 65 73 0d |kDraw, a|nd does.|
|00000bf0| 09 09 09 6e 6f 74 20 75 | 73 65 20 74 68 65 20 50 |...not u|se the P|
|00000c00| 61 6c 65 74 74 65 20 4d | 61 6e 61 67 65 72 2e 20 |alette M|anager. |
|00000c10| 20 49 74 20 64 72 61 77 | 73 20 72 61 6e 64 6f 6d | It draw|s random|
|00000c20| 6c 79 20 63 6f 6c 6f 72 | 65 64 0d 09 09 09 62 61 |ly color|ed....ba|
|00000c30| 6c 6c 73 20 69 6e 20 61 | 20 63 6f 6c 6f 72 20 77 |lls in a| color w|
|00000c40| 69 6e 64 6f 77 2e 20 20 | 54 68 69 73 20 69 73 20 |indow. |This is |
|00000c50| 69 6e 74 65 6e 64 65 64 | 20 74 6f 20 67 69 76 65 |intended| to give|
|00000c60| 20 79 6f 75 0d 09 09 09 | 74 68 65 20 61 62 73 6f | you....|the abso|
|00000c70| 6c 75 74 65 20 6d 69 6e | 69 6d 75 6d 20 72 65 71 |lute min|imum req|
|00000c80| 75 69 72 65 64 20 74 6f | 20 67 65 74 20 63 6f 6c |uired to| get col|
|00000c90| 6f 72 20 6f 6e 20 74 68 | 65 20 73 63 72 65 65 6e |or on th|e screen|
|00000ca0| 2e 0d 09 09 09 57 72 69 | 74 74 65 6e 20 69 6e 20 |.....Wri|tten in |
|00000cb0| 73 74 72 61 69 67 68 74 | 20 50 61 73 63 61 6c 20 |straight| Pascal |
|00000cc0| 63 6f 64 65 2e 0d 09 09 | 09 43 6f 6d 70 61 74 69 |code....|.Compati|
|00000cd0| 62 69 6c 69 74 79 20 72 | 61 74 69 6e 67 20 3d 20 |bility r|ating = |
|00000ce0| 30 2c 20 6e 6f 20 6b 6e | 6f 77 6e 20 72 69 73 6b |0, no kn|own risk|
|00000cf0| 73 2e 0d 09 09 0d 09 09 | 46 72 61 63 41 70 70 50 |s.......|FracAppP|
|00000d00| 61 6c 65 74 74 65 3a 0d | 09 09 09 54 68 69 73 20 |alette:.|...This |
|00000d10| 69 73 20 61 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 |is a ver|sion of |
|00000d20| 46 72 61 63 41 70 70 20 | 74 68 61 74 20 75 73 65 |FracApp |that use|
|00000d30| 73 20 6f 6e 6c 79 20 74 | 68 65 20 50 61 6c 65 74 |s only t|he Palet|
|00000d40| 74 65 0d 09 09 09 4d 61 | 6e 61 67 65 72 2e 20 20 |te....Ma|nager. |
|00000d50| 49 74 20 64 6f 65 73 20 | 6e 6f 74 20 73 75 70 70 |It does |not supp|
|00000d60| 6f 72 74 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 20 |ort colo|r table |
|00000d70| 61 6e 69 6d 61 74 69 6f | 6e 0d 09 09 09 73 69 6e |animatio|n....sin|
|00000d80| 63 65 20 74 68 61 74 20 | 70 61 72 74 20 6f 66 20 |ce that |part of |
|00000d90| 74 68 65 20 50 61 6c 65 | 74 74 65 20 4d 61 6e 61 |the Pale|tte Mana|
|00000da0| 67 65 72 20 69 73 20 6e | 6f 74 20 73 75 66 66 69 |ger is n|ot suffi|
|00000db0| 63 69 65 6e 74 2e 0d 09 | 09 09 54 68 65 20 70 72 |cient...|..The pr|
|00000dc0| 6f 67 72 61 6d 20 64 65 | 6d 6f 6e 73 74 72 61 74 |ogram de|monstrat|
|00000dd0| 65 73 20 61 20 66 75 6c | 6c 20 63 6f 6c 6f 72 20 |es a ful|l color |
|00000de0| 70 61 6c 65 74 74 65 20 | 74 68 61 74 20 69 73 0d |palette |that is.|
|00000df0| 09 09 09 75 73 65 64 20 | 74 6f 20 64 69 73 70 6c |...used |to displ|
|00000e00| 61 79 20 74 68 65 20 4d | 61 6e 64 65 6c 62 72 6f |ay the M|andelbro|
|00000e10| 74 20 73 65 74 2e 20 20 | 49 74 20 75 73 65 73 20 |t set. |It uses |
|00000e20| 61 6e 20 6f 66 66 73 63 | 72 65 65 6e 0d 09 09 09 |an offsc|reen....|
|00000e30| 67 44 65 76 69 63 65 20 | 77 2f 20 50 6f 72 74 20 |gDevice |w/ Port |
|00000e40| 74 6f 20 68 61 6e 64 6c | 65 20 74 68 65 20 64 61 |to handl|e the da|
|00000e50| 74 61 2c 20 75 73 69 6e | 67 20 43 6f 70 79 42 69 |ta, usin|g CopyBi|
|00000e60| 74 73 20 74 6f 0d 09 09 | 09 64 72 61 77 20 74 6f |ts to...|.draw to|
|00000e70| 20 74 68 65 20 77 69 6e | 64 6f 77 2e 20 20 54 68 | the win|dow. Th|
|00000e80| 65 20 50 61 6c 65 74 74 | 65 20 69 73 20 61 75 74 |e Palett|e is aut|
|00000e90| 6f 6d 61 74 69 63 61 6c | 6c 79 20 0d 09 09 09 61 |omatical|ly ....a|
|00000ea0| 73 73 6f 63 69 61 74 65 | 64 20 77 69 74 68 20 65 |ssociate|d with e|
|00000eb0| 61 63 68 20 77 69 6e 64 | 6f 77 2e 20 20 54 68 65 |ach wind|ow. The|
|00000ec0| 20 50 49 43 54 20 66 69 | 6c 65 73 20 61 72 65 20 | PICT fi|les are |
|00000ed0| 72 65 61 64 0d 09 09 09 | 61 6e 64 20 77 72 69 74 |read....|and writ|
|00000ee0| 74 65 6e 20 75 73 69 6e | 67 20 74 68 65 20 62 6f |ten usin|g the bo|
|00000ef0| 74 74 6c 65 6e 65 63 6b | 73 2c 20 74 6f 20 73 61 |ttleneck|s, to sa|
|00000f00| 76 65 20 6f 6e 20 6d 65 | 6d 6f 72 79 0d 09 09 09 |ve on me|mory....|
|00000f10| 75 73 65 61 67 65 2e 0d | 09 09 09 57 72 69 74 74 |useage..|...Writt|
|00000f20| 65 6e 20 69 6e 20 4d 61 | 63 41 70 70 20 4f 62 6a |en in Ma|cApp Obj|
|00000f30| 65 63 74 20 50 61 73 63 | 61 6c 20 63 6f 64 65 2e |ect Pasc|al code.|
|00000f40| 0d 09 09 09 43 6f 6d 70 | 61 74 69 62 69 6c 69 74 |....Comp|atibilit|
|00000f50| 79 20 72 61 74 69 6e 67 | 20 3d 20 30 2c 20 6e 6f |y rating| = 0, no|
|00000f60| 20 6b 6e 6f 77 6e 20 72 | 69 73 6b 73 2e 0d 09 09 | known r|isks....|
|00000f70| 0d 09 09 54 75 62 65 54 | 65 73 74 3a 09 28 2a 2a |...TubeT|est:.(**|
|00000f80| 2a 29 0d 09 09 09 54 68 | 69 73 20 69 73 20 61 20 |*)....Th|is is a |
|00000f90| 73 6d 61 6c 6c 20 64 65 | 6d 6f 20 70 72 6f 67 72 |small de|mo progr|
|00000fa0| 61 6d 20 74 68 61 74 20 | 64 65 6d 6f 6e 73 74 72 |am that |demonstr|
|00000fb0| 61 74 65 73 20 75 73 69 | 6e 67 20 74 68 65 0d 09 |ates usi|ng the..|
|00000fc0| 09 09 50 61 6c 65 74 74 | 65 20 4d 61 6e 61 67 65 |..Palett|e Manage|
|00000fd0| 72 20 66 6f 72 20 63 6f | 6c 6f 72 20 74 61 62 6c |r for co|lor tabl|
|00000fe0| 65 20 61 6e 69 6d 61 74 | 69 6f 6e 2e 20 20 49 74 |e animat|ion. It|
|00000ff0| 20 75 73 65 73 20 61 20 | 0d 09 09 09 63 6f 6c 6f | uses a |....colo|
|00001000| 72 20 70 61 6c 65 74 74 | 65 20 77 69 74 68 20 61 |r palett|e with a|
|00001010| 6e 69 6d 61 74 69 6e 67 | 20 65 6e 74 72 69 65 73 |nimating| entries|
|00001020| 2c 20 61 6e 64 20 64 72 | 61 77 73 20 75 73 69 6e |, and dr|aws usin|
|00001030| 67 20 74 68 65 0d 09 09 | 09 50 61 6c 65 74 74 65 |g the...|.Palette|
|00001040| 20 4d 61 6e 61 67 65 72 | 2e 20 20 54 68 65 72 65 | Manager|. There|
|00001050| 20 61 72 65 20 74 77 6f | 20 63 69 72 63 6c 65 73 | are two| circles|
|00001060| 20 6f 66 20 61 6e 69 6d | 61 74 69 6e 67 20 63 6f | of anim|ating co|
|00001070| 6c 6f 72 73 0d 09 09 09 | 77 68 69 63 68 20 67 69 |lors....|which gi|
|00001080| 76 65 73 20 61 20 66 6c | 6f 77 69 6e 67 20 74 75 |ves a fl|owing tu|
|00001090| 62 65 20 65 66 66 65 63 | 74 2e 20 20 54 68 69 73 |be effec|t. This|
|000010a0| 20 69 73 20 61 20 76 61 | 6c 69 64 20 63 61 73 65 | is a va|lid case|
|000010b0| 0d 09 09 09 66 6f 72 20 | 75 73 69 6e 67 20 74 68 |....for |using th|
|000010c0| 65 20 61 6e 69 6d 61 74 | 69 6e 67 20 63 6f 6c 6f |e animat|ing colo|
|000010d0| 72 73 20 61 73 70 65 63 | 74 20 6f 66 20 74 68 65 |rs aspec|t of the|
|000010e0| 20 50 61 6c 65 74 74 65 | 20 4d 61 6e 61 67 65 72 | Palette| Manager|
|000010f0| 2c 0d 09 09 09 73 69 6e | 63 65 20 74 68 65 20 69 |,....sin|ce the i|
|00001100| 6d 61 67 65 20 69 73 20 | 62 65 69 6e 67 20 64 72 |mage is |being dr|
|00001110| 61 77 6e 20 64 69 72 65 | 63 74 6c 79 2e 0d 09 09 |awn dire|ctly....|
|00001120| 09 57 72 69 74 74 65 6e | 20 69 6e 20 73 74 72 61 |.Written| in stra|
|00001130| 69 67 68 74 20 50 61 73 | 63 61 6c 20 63 6f 64 65 |ight Pas|cal code|
|00001140| 2e 0d 09 09 09 43 6f 6d | 70 61 74 69 62 69 6c 69 |.....Com|patibili|
|00001150| 74 79 20 72 61 74 69 6e | 67 20 3d 20 30 2c 20 6e |ty ratin|g = 0, n|
|00001160| 6f 20 6b 6e 6f 77 6e 20 | 72 69 73 6b 73 2e 0d 09 |o known |risks...|
|00001170| 09 0d 09 09 46 72 61 63 | 41 70 70 3a 0d 09 09 09 |....Frac|App:....|
|00001180| 54 68 69 73 20 69 73 20 | 74 68 65 20 d4 63 6f 6d |This is |the .com|
|00001190| 6d 65 72 63 69 61 6c 20 | 71 75 61 6c 69 74 79 d5 |mercial |quality.|
|000011a0| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 46 72 61 63 | version| of Frac|
|000011b0| 41 70 70 2e 20 20 54 68 | 69 73 0d 09 09 09 76 65 |App. Th|is....ve|
|000011c0| 72 73 69 6f 6e 20 73 75 | 70 70 6f 72 74 73 20 63 |rsion su|pports c|
|000011d0| 6f 6c 6f 72 20 74 61 62 | 6c 65 20 61 6e 69 6d 61 |olor tab|le anima|
|000011e0| 74 69 6f 6e 2c 20 75 73 | 69 6e 67 20 61 6e 20 6f |tion, us|ing an o|
|000011f0| 66 66 73 63 72 65 65 6e | 0d 09 09 09 67 44 65 76 |ffscreen|....gDev|
|00001200| 69 63 65 20 77 2f 20 50 | 6f 72 74 2c 20 61 6e 64 |ice w/ P|ort, and|
|00001210| 20 68 61 6e 64 6c 65 73 | 20 6d 75 6c 74 69 70 6c | handles| multipl|
|00001220| 65 20 64 6f 63 75 6d 65 | 6e 74 73 2e 20 20 54 68 |e docume|nts. Th|
|00001230| 65 0d 09 09 09 43 6f 70 | 79 42 69 74 73 20 75 70 |e....Cop|yBits up|
|00001240| 64 61 74 65 73 20 74 6f | 20 74 68 65 20 73 63 72 |dates to| the scr|
|00001250| 65 65 6e 20 61 72 65 20 | 61 73 20 66 61 73 74 20 |een are |as fast |
|00001260| 61 73 20 70 6f 73 73 69 | 62 6c 65 2e 20 20 54 68 |as possi|ble. Th|
|00001270| 65 0d 09 09 09 70 72 6f | 67 72 61 6d 20 64 6f 65 |e....pro|gram doe|
|00001280| 73 20 6e 6f 74 20 75 73 | 65 20 74 68 65 20 50 61 |s not us|e the Pa|
|00001290| 6c 65 74 74 65 20 4d 61 | 6e 61 67 65 72 2c 20 65 |lette Ma|nager, e|
|000012a0| 78 63 65 70 74 20 74 6f | 0d 09 09 09 70 72 6f 76 |xcept to|....prov|
|000012b0| 69 64 65 20 66 6f 72 20 | 74 68 65 20 73 79 73 74 |ide for |the syst|
|000012c0| 65 6d 20 70 61 6c 65 74 | 74 65 2c 20 6f 72 20 63 |em palet|te, or c|
|000012d0| 6f 6c 6f 72 20 6d 6f 64 | 65 73 20 77 69 74 68 20 |olor mod|es with |
|000012e0| 6c 65 73 73 20 74 68 61 | 6e 0d 09 09 09 32 35 35 |less tha|n....255|
|000012f0| 20 63 6f 6c 6f 72 73 2e | 20 20 46 6f 72 20 63 6f | colors.| For co|
|00001300| 6c 6f 72 20 74 61 62 6c | 65 20 61 6e 69 6d 61 74 |lor tabl|e animat|
|00001310| 69 6f 6e 20 75 73 69 6e | 67 20 61 6e 20 6f 66 66 |ion usin|g an off|
|00001320| 73 63 72 65 65 6e 0d 09 | 09 09 67 44 65 76 69 63 |screen..|..gDevic|
|00001330| 65 20 77 2f 20 50 6f 72 | 74 2c 20 69 74 20 75 73 |e w/ Por|t, it us|
|00001340| 65 73 20 74 68 65 20 43 | 6f 6c 6f 72 20 4d 61 6e |es the C|olor Man|
|00001350| 61 67 65 72 20 61 6e 64 | 20 68 61 6e 64 6c 65 73 |ager and| handles|
|00001360| 20 74 68 65 0d 09 09 09 | 63 6f 6c 6f 72 73 20 69 | the....|colors i|
|00001370| 74 73 65 6c 66 2e 20 20 | 53 74 72 69 63 74 20 63 |tself. |Strict c|
|00001380| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 77 61 73 |ompatibi|lity was|
|00001390| 20 72 65 6c 61 78 65 64 | 20 74 6f 20 61 6c 6c 6f | relaxed| to allo|
|000013a0| 77 20 66 6f 72 0d 09 09 | 09 61 20 68 69 67 68 65 |w for...|.a highe|
|000013b0| 72 20 70 65 72 66 6f 72 | 6d 61 6e 63 65 20 70 72 |r perfor|mance pr|
|000013c0| 6f 67 72 61 6d 2e 20 20 | 54 68 69 73 20 69 73 20 |ogram. |This is |
|000013d0| 74 68 65 20 6d 6f 73 74 | 20 d4 72 65 61 6c d5 20 |the most| .real. |
|000013e0| 6f 66 20 74 68 65 0d 09 | 09 09 73 61 6d 70 6c 65 |of the..|..sample|
|000013f0| 20 70 72 6f 67 72 61 6d | 73 2e 0d 09 09 09 57 72 | program|s.....Wr|
|00001400| 69 74 74 65 6e 20 69 6e | 20 4d 61 63 41 70 70 20 |itten in| MacApp |
|00001410| 4f 62 6a 65 63 74 20 50 | 61 73 63 61 6c 20 63 6f |Object P|ascal co|
|00001420| 64 65 2e 0d 09 09 09 43 | 6f 6d 70 61 74 69 62 69 |de.....C|ompatibi|
|00001430| 6c 69 74 79 20 72 61 74 | 69 6e 67 20 3d 20 32 2e |lity rat|ing = 2.|
|00001440| 20 20 28 6e 6f 74 68 69 | 6e 67 20 77 69 6c 6c 20 | (nothi|ng will |
|00001450| 62 72 65 61 6b 2c 20 62 | 75 74 20 69 74 20 6d 61 |break, b|ut it ma|
|00001460| 79 20 6e 6f 74 0d 09 09 | 09 61 6c 77 61 79 73 20 |y not...|.always |
|00001470| 6c 6f 6f 6b 20 63 6f 72 | 72 65 63 74 2e 29 0d 09 |look cor|rect.)..|
|00001480| 09 0d 09 09 46 72 61 63 | 41 70 70 33 30 30 3a 0d |....Frac|App300:.|
|00001490| 09 09 09 54 68 69 73 20 | 64 6f 65 73 6e 27 74 20 |...This |doesn't |
|000014a0| 73 75 70 70 6f 72 74 20 | 63 6f 6c 6f 72 73 2c 20 |support |colors, |
|000014b0| 62 75 74 20 64 65 6d 6f | 6e 73 74 72 61 74 65 73 |but demo|nstrates|
|000014c0| 20 68 6f 77 20 74 6f 20 | 63 72 65 61 74 65 20 61 | how to |create a|
|000014d0| 6e 64 0d 09 09 09 75 73 | 65 20 61 20 33 30 30 20 |nd....us|e a 300 |
|000014e0| 64 70 69 20 62 69 74 6d | 61 70 20 77 2f 20 50 6f |dpi bitm|ap w/ Po|
|000014f0| 72 74 2e 20 20 54 68 65 | 20 62 69 74 6d 61 70 20 |rt. The| bitmap |
|00001500| 69 73 20 70 72 69 6e 74 | 65 64 20 61 74 20 66 75 |is print|ed at fu|
|00001510| 6c 6c 0d 09 09 09 72 65 | 73 6f 6c 75 74 69 6f 6e |ll....re|solution|
|00001520| 20 6f 6e 20 4c 61 73 65 | 72 57 72 69 74 65 72 73 | on Lase|rWriters|
|00001530| 2c 20 61 6e 64 20 63 6c | 69 70 70 65 64 20 6f 6e |, and cl|ipped on|
|00001540| 20 6f 74 68 65 72 20 70 | 72 69 6e 74 65 72 73 20 | other p|rinters |
|00001550| 28 62 75 74 0d 09 09 09 | 74 68 65 79 20 73 74 69 |(but....|they sti|
|00001560| 6c 6c 20 70 72 69 6e 74 | 29 2e 20 20 49 74 20 64 |ll print|). It d|
|00001570| 65 6d 6f 6e 73 74 72 61 | 74 65 73 20 68 6f 77 20 |emonstra|tes how |
|00001580| 74 6f 20 75 73 65 20 61 | 20 68 69 67 68 20 72 65 |to use a| high re|
|00001590| 73 6f 6c 75 74 69 6f 6e | 0d 09 09 09 69 6d 61 67 |solution|....imag|
|000015a0| 65 20 61 73 20 61 20 50 | 49 43 54 20 66 69 6c 65 |e as a P|ICT file|
|000015b0| 2c 20 61 6e 64 20 68 6f | 77 20 74 6f 20 70 72 69 |, and ho|w to pri|
|000015c0| 6e 74 20 74 68 65 6d 20 | 6f 75 74 2e 0d 09 09 09 |nt them |out.....|
|000015d0| 57 72 69 74 74 65 6e 20 | 69 6e 20 4d 61 63 41 70 |Written |in MacAp|
|000015e0| 70 20 4f 62 6a 65 63 74 | 20 50 61 73 63 61 6c 20 |p Object| Pascal |
|000015f0| 63 6f 64 65 2e 0d 09 09 | 09 43 6f 6d 70 61 74 69 |code....|.Compati|
|00001600| 62 69 6c 69 74 79 20 72 | 61 74 69 6e 67 20 3d 20 |bility r|ating = |
|00001610| 31 2e 20 20 28 54 68 65 | 20 75 73 65 20 6f 66 20 |1. (The| use of |
|00001620| 50 72 47 65 6e 65 72 61 | 6c 20 69 73 20 73 6c 69 |PrGenera|l is sli|
|00001630| 67 68 74 6c 79 20 0d 09 | 09 09 6f 75 74 20 6f 66 |ghtly ..|..out of|
|00001640| 20 74 68 65 20 6f 72 64 | 69 6e 61 72 79 2c 20 61 | the ord|inary, a|
|00001650| 6c 74 68 6f 75 67 68 20 | 73 75 70 70 6f 72 74 65 |lthough |supporte|
|00001660| 64 2e 29 0d 7d 0d 0d 20 | 7b 24 52 2d 7d 09 7b 20 |d.).}.. |{$R-}.{ |
|00001670| 4e 6f 20 72 61 6e 67 65 | 20 63 68 65 63 6b 69 6e |No range| checkin|
|00001680| 67 2e 7d 0d 20 7b 24 44 | 2b 7d 09 7b 20 44 65 62 |g.}. {$D|+}.{ Deb|
|00001690| 75 67 67 69 6e 67 20 6c | 61 62 65 6c 73 20 6f 6e |ugging l|abels on|
|000016a0| 2e 20 7d 0d 20 0d 20 0d | 09 7b 20 49 6e 74 65 72 |. }. . .|.{ Inter|
|000016b0| 66 61 63 65 20 66 69 6c | 65 73 20 77 69 74 68 20 |face fil|es with |
|000016c0| 61 6c 6c 20 74 68 65 20 | 68 61 70 70 79 20 4d 61 |all the |happy Ma|
|000016d0| 63 69 6e 74 6f 73 68 20 | 73 74 75 66 66 20 69 6e |cintosh |stuff in|
|000016e0| 20 74 68 65 6d 2e 20 7d | 0d 55 53 45 53 20 0d 09 | them. }|.USES ..|
|000016f0| 4d 65 6d 54 79 70 65 73 | 2c 20 51 75 69 63 6b 44 |MemTypes|, QuickD|
|00001700| 72 61 77 2c 20 4f 73 49 | 6e 74 66 2c 20 54 6f 6f |raw, OsI|ntf, Too|
|00001710| 6c 49 6e 74 66 2c 20 50 | 61 6c 65 74 74 65 4d 67 |lIntf, P|aletteMg|
|00001720| 72 3b 0d 09 0d 09 0d 43 | 4f 4e 53 54 0d 09 61 70 |r;.....C|ONST..ap|
|00001730| 70 6c 65 49 44 09 09 09 | 09 09 3d 20 31 30 30 30 |pleID...|..= 1000|
|00001740| 3b 09 09 7b 20 72 65 73 | 6f 75 72 63 65 20 49 44 |;..{ res|ource ID|
|00001750| 73 2f 6d 65 6e 75 20 49 | 44 73 20 66 6f 72 20 41 |s/menu I|Ds for A|
|00001760| 70 70 6c 65 2c 20 46 69 | 6c 65 20 61 6e 64 20 45 |pple, Fi|le and E|
|00001770| 64 69 74 20 6d 65 6e 75 | 73 20 7d 0d 09 66 69 6c |dit menu|s }..fil|
|00001780| 65 49 44 09 09 09 09 09 | 3d 20 31 30 30 31 3b 0d |eID.....|= 1001;.|
|00001790| 09 65 64 69 74 49 44 09 | 09 09 09 09 3d 20 31 30 |.editID.|....= 10|
|000017a0| 30 32 3b 0d 09 0d 09 61 | 70 70 6c 65 4d 09 09 09 |02;....a|ppleM...|
|000017b0| 09 09 3d 20 31 3b 09 09 | 7b 20 49 6e 64 65 78 20 |..= 1;..|{ Index |
|000017c0| 66 6f 72 20 65 61 63 68 | 20 6d 65 6e 75 20 69 6e |for each| menu in|
|000017d0| 20 6d 79 4d 65 6e 75 73 | 20 28 61 72 72 61 79 20 | myMenus| (array |
|000017e0| 6f 66 20 6d 65 6e 75 20 | 68 61 6e 64 6c 65 73 29 |of menu |handles)|
|000017f0| 20 7d 0d 09 66 69 6c 65 | 4d 09 09 09 09 09 3d 20 | }..file|M.....= |
|00001800| 32 3b 0d 09 65 64 69 74 | 4d 09 09 09 09 09 3d 20 |2;..edit|M.....= |
|00001810| 33 3b 0d 0d 09 6d 65 6e | 75 43 6f 75 6e 74 09 09 |3;...men|uCount..|
|00001820| 09 09 3d 20 33 3b 09 09 | 7b 20 54 6f 74 61 6c 20 |..= 3;..|{ Total |
|00001830| 6e 75 6d 62 65 72 20 6f | 66 20 6d 65 6e 75 73 20 |number o|f menus |
|00001840| 7d 0d 0d 09 77 69 6e 64 | 6f 77 49 44 09 09 09 09 |}...wind|owID....|
|00001850| 3d 20 31 30 30 30 3b 09 | 09 7b 20 52 65 73 6f 75 |= 1000;.|.{ Resou|
|00001860| 72 63 65 20 49 44 20 66 | 6f 72 20 6d 61 69 6e 20 |rce ID f|or main |
|00001870| 77 69 6e 64 6f 77 20 7d | 0d 09 61 62 6f 75 74 4d |window }|..aboutM|
|00001880| 65 44 4c 4f 47 20 09 09 | 09 3d 20 31 30 30 30 3b |eDLOG ..|.= 1000;|
|00001890| 09 09 7b 20 41 6e 64 20 | 52 65 73 6f 75 72 63 65 |..{ And |Resource|
|000018a0| 20 49 44 20 66 6f 72 20 | 41 62 6f 75 74 20 62 6f | ID for |About bo|
|000018b0| 78 20 64 69 61 6c 6f 67 | 2e 20 7d 0d 0d 09 74 75 |x dialog|. }...tu|
|000018c0| 62 75 6c 61 72 49 74 65 | 6d 09 09 09 09 3d 20 31 |bularIte|m....= 1|
|000018d0| 3b 09 09 7b 20 57 68 65 | 6e 20 63 68 65 63 6b 65 |;..{ Whe|n checke|
|000018e0| 64 2c 20 61 6e 69 6d 61 | 74 69 6f 6e 20 6f 66 20 |d, anima|tion of |
|000018f0| 63 6f 6c 6f 72 73 2e 20 | 7d 0d 09 71 75 69 74 49 |colors. |}..quitI|
|00001900| 74 65 6d 09 09 09 09 3d | 20 33 3b 09 09 7b 20 51 |tem....=| 3;..{ Q|
|00001910| 75 69 74 20 69 6e 20 74 | 68 65 20 6d 65 6e 75 20 |uit in t|he menu |
|00001920| 6f 66 20 63 6f 75 72 73 | 65 2e 20 7d 0d 0d 09 61 |of cours|e. }...a|
|00001930| 62 6f 75 74 4d 65 43 6f | 6d 6d 61 6e 64 09 09 09 |boutMeCo|mmand...|
|00001940| 3d 20 31 3b 09 09 7b 20 | 4d 65 6e 75 20 69 74 65 |= 1;..{ |Menu ite|
|00001950| 6d 20 69 6e 20 61 70 70 | 6c 65 20 6d 65 6e 75 20 |m in app|le menu |
|00001960| 66 6f 72 20 41 62 6f 75 | 74 20 54 75 62 65 54 65 |for Abou|t TubeTe|
|00001970| 73 74 20 69 74 65 6d 20 | 7d 0d 09 0d 09 74 6f 74 |st item |}....tot|
|00001980| 61 6c 43 6f 6c 6f 72 73 | 09 09 09 09 3d 20 31 35 |alColors|....= 15|
|00001990| 32 3b 09 09 7b 20 75 73 | 65 20 31 35 30 20 63 6f |2;..{ us|e 150 co|
|000019a0| 6c 6f 72 73 20 69 6e 20 | 6f 75 72 20 70 61 6c 65 |lors in |our pale|
|000019b0| 74 74 65 20 66 6f 72 20 | 64 72 61 77 69 6e 67 20 |tte for |drawing |
|000019c0| 65 79 65 73 2e 20 7d 0d | 09 6e 75 6d 43 6f 6c 6f |eyes. }.|.numColo|
|000019d0| 72 73 09 09 09 09 3d 20 | 31 35 30 3b 09 09 7b 20 |rs....= |150;..{ |
|000019e0| 74 6f 20 73 6b 69 70 20 | 62 6c 61 63 6b 20 61 6e |to skip |black an|
|000019f0| 64 20 77 68 69 74 65 2e | 20 7d 0d 09 0d 09 0d 20 |d white.| }..... |
|00001a00| 0d 56 41 52 0d 09 6d 79 | 4d 65 6e 75 73 3a 09 09 |.VAR..my|Menus:..|
|00001a10| 41 52 52 41 59 20 5b 31 | 2e 2e 6d 65 6e 75 43 6f |ARRAY [1|..menuCo|
|00001a20| 75 6e 74 5d 20 4f 46 20 | 4d 65 6e 75 48 61 6e 64 |unt] OF |MenuHand|
|00001a30| 6c 65 3b 0d 09 64 72 61 | 67 52 65 63 74 3a 09 09 |le;..dra|gRect:..|
|00001a40| 52 65 63 74 3b 09 09 09 | 09 7b 20 52 65 63 74 61 |Rect;...|.{ Recta|
|00001a50| 6e 67 6c 65 20 75 73 65 | 64 20 74 6f 20 6d 61 72 |ngle use|d to mar|
|00001a60| 6b 20 62 6f 75 6e 64 73 | 20 66 6f 72 20 64 72 61 |k bounds| for dra|
|00001a70| 67 67 69 6e 67 20 77 69 | 6e 64 6f 77 20 7d 0d 09 |gging wi|ndow }..|
|00001a80| 64 6f 6e 65 46 6c 61 67 | 3a 09 09 42 4f 4f 4c 45 |doneFlag|:..BOOLE|
|00001a90| 41 4e 3b 09 09 09 7b 20 | 54 52 55 45 20 69 66 20 |AN;...{ |TRUE if |
|00001aa0| 75 73 65 72 20 68 61 73 | 20 63 68 6f 73 65 6e 20 |user has| chosen |
|00001ab0| 51 75 69 74 20 63 6f 6d | 6d 61 6e 64 20 7d 0d 09 |Quit com|mand }..|
|00001ac0| 6d 79 45 76 65 6e 74 3a | 09 09 45 76 65 6e 74 52 |myEvent:|..EventR|
|00001ad0| 65 63 6f 72 64 3b 0d 09 | 6d 79 57 69 6e 64 6f 77 |ecord;..|myWindow|
|00001ae0| 3a 09 09 57 69 6e 64 6f | 77 50 74 72 3b 0d 09 77 |:..Windo|wPtr;..w|
|00001af0| 68 69 63 68 57 69 6e 64 | 6f 77 3a 09 57 69 6e 64 |hichWind|ow:.Wind|
|00001b00| 6f 77 50 74 72 3b 0d 09 | 74 75 62 65 43 68 65 63 |owPtr;..|tubeChec|
|00001b10| 6b 3a 09 09 42 6f 6f 6c | 65 61 6e 3b 09 09 09 7b |k:..Bool|ean;...{|
|00001b20| 20 69 66 20 74 72 75 65 | 2c 20 74 68 65 20 6d 65 | if true|, the me|
|00001b30| 6e 75 20 69 73 20 63 68 | 65 63 6b 65 64 2c 20 61 |nu is ch|ecked, a|
|00001b40| 6e 64 20 77 65 20 61 6e | 69 6d 61 74 65 2e 20 7d |nd we an|imate. }|
|00001b50| 0d 09 74 68 65 43 68 61 | 72 3a 09 09 43 68 61 72 |..theCha|r:..Char|
|00001b60| 3b 0d 09 65 72 72 6f 72 | 3a 20 09 09 09 4f 53 45 |;..error|: ...OSE|
|00001b70| 72 72 3b 0d 09 74 68 65 | 57 6f 72 6c 64 3a 20 09 |rr;..the|World: .|
|00001b80| 09 53 79 73 45 6e 76 52 | 65 63 3b 0d 09 0d 09 7b |.SysEnvR|ec;....{|
|00001b90| 20 54 68 69 73 20 72 6f | 75 74 69 6e 65 20 77 69 | This ro|utine wi|
|00001ba0| 6c 6c 20 75 70 64 61 74 | 65 20 74 68 65 20 77 69 |ll updat|e the wi|
|00001bb0| 6e 64 6f 77 20 77 68 65 | 6e 20 72 65 71 75 69 72 |ndow whe|n requir|
|00001bc0| 65 64 20 62 79 20 75 70 | 64 61 74 65 20 65 76 65 |ed by up|date eve|
|00001bd0| 6e 74 73 2e 09 49 74 0d | 09 09 77 69 6c 6c 20 64 |nts..It.|..will d|
|00001be0| 72 61 77 20 74 77 6f 20 | 63 69 72 63 75 6c 61 72 |raw two |circular|
|00001bf0| 20 64 75 64 65 73 20 74 | 68 61 74 20 61 72 65 20 | dudes t|hat are |
|00001c00| 69 6e 64 65 78 65 64 20 | 69 6e 20 63 6f 6c 6f 72 |indexed |in color|
|00001c10| 73 20 74 68 72 6f 75 67 | 68 20 74 68 65 20 63 6f |s throug|h the co|
|00001c20| 6c 6f 72 73 0d 09 09 77 | 65 20 61 72 65 20 75 73 |lors...w|e are us|
|00001c30| 69 6e 67 2e 20 30 20 61 | 6e 64 20 31 20 61 72 65 |ing. 0 a|nd 1 are|
|00001c40| 20 73 6b 69 70 70 65 64 | 2c 20 73 69 6e 63 65 20 | skipped|, since |
|00001c50| 74 68 6f 73 65 20 61 72 | 65 20 77 68 69 74 65 20 |those ar|e white |
|00001c60| 61 6e 64 20 62 6c 61 63 | 6b 20 69 6e 20 74 68 65 |and blac|k in the|
|00001c70| 0d 09 09 70 61 6c 65 74 | 74 65 2e 20 7d 0d 50 52 |...palet|te. }.PR|
|00001c80| 4f 43 45 44 55 52 45 20 | 44 72 61 77 45 79 65 73 |OCEDURE |DrawEyes|
|00001c90| 3b 0d 09 0d 09 56 41 52 | 09 09 54 65 6d 70 52 65 |;....VAR|..TempRe|
|00001ca0| 63 74 3a 09 52 65 63 74 | 3b 0d 09 09 09 49 3a 09 |ct:.Rect|;....I:.|
|00001cb0| 09 09 49 6e 74 65 67 65 | 72 3b 0d 09 0d 42 45 47 |..Intege|r;...BEG|
|00001cc0| 49 4e 0d 09 53 65 74 52 | 65 63 74 28 54 65 6d 70 |IN..SetR|ect(Temp|
|00001cd0| 52 65 63 74 2c 20 6e 75 | 6d 43 6f 6c 6f 72 73 2c |Rect, nu|mColors,|
|00001ce0| 20 6e 75 6d 43 6f 6c 6f | 72 73 2c 20 6e 75 6d 43 | numColo|rs, numC|
|00001cf0| 6f 6c 6f 72 73 2c 20 6e | 75 6d 43 6f 6c 6f 72 73 |olors, n|umColors|
|00001d00| 29 3b 0d 09 46 6f 72 20 | 49 20 3a 3d 20 32 20 54 |);..For |I := 2 T|
|00001d10| 6f 20 74 6f 74 61 6c 43 | 6f 6c 6f 72 73 20 44 6f |o totalC|olors Do|
|00001d20| 20 42 65 67 69 6e 0d 09 | 09 50 6d 46 6f 72 65 43 | Begin..|.PmForeC|
|00001d30| 6f 6c 6f 72 28 49 29 3b | 0d 09 09 46 72 61 6d 65 |olor(I);|...Frame|
|00001d40| 4f 76 61 6c 20 28 54 65 | 6d 70 52 65 63 74 29 3b |Oval (Te|mpRect);|
|00001d50| 0d 09 09 49 6e 73 65 74 | 52 65 63 74 20 28 54 65 |...Inset|Rect (Te|
|00001d60| 6d 70 52 65 63 74 2c 20 | 2d 31 2c 20 2d 31 29 3b |mpRect, |-1, -1);|
|00001d70| 0d 09 45 4e 44 3b 0d 09 | 0d 09 53 65 74 52 65 63 |..END;..|..SetRec|
|00001d80| 74 28 54 65 6d 70 52 65 | 63 74 2c 20 6e 75 6d 43 |t(TempRe|ct, numC|
|00001d90| 6f 6c 6f 72 73 2a 33 2c | 20 6e 75 6d 43 6f 6c 6f |olors*3,| numColo|
|00001da0| 72 73 2c 20 6e 75 6d 43 | 6f 6c 6f 72 73 2a 33 2c |rs, numC|olors*3,|
|00001db0| 20 6e 75 6d 43 6f 6c 6f | 72 73 29 3b 0d 09 46 6f | numColo|rs);..Fo|
|00001dc0| 72 20 49 20 3a 3d 20 74 | 6f 74 61 6c 43 6f 6c 6f |r I := t|otalColo|
|00001dd0| 72 73 20 44 6f 77 6e 54 | 6f 20 32 20 44 6f 20 42 |rs DownT|o 2 Do B|
|00001de0| 65 67 69 6e 0d 09 09 50 | 6d 46 6f 72 65 43 6f 6c |egin...P|mForeCol|
|00001df0| 6f 72 28 49 29 3b 0d 09 | 09 46 72 61 6d 65 4f 76 |or(I);..|.FrameOv|
|00001e00| 61 6c 20 28 54 65 6d 70 | 52 65 63 74 29 3b 0d 09 |al (Temp|Rect);..|
|00001e10| 09 49 6e 73 65 74 52 65 | 63 74 20 28 54 65 6d 70 |.InsetRe|ct (Temp|
|00001e20| 52 65 63 74 2c 20 2d 31 | 2c 20 2d 31 29 3b 0d 09 |Rect, -1|, -1);..|
|00001e30| 45 4e 44 3b 0d 45 4e 44 | 3b 09 7b 20 44 72 61 77 |END;.END|;.{ Draw|
|00001e40| 45 79 65 73 20 7d 0d 0d | 0d 50 52 4f 43 45 44 55 |Eyes }..|.PROCEDU|
|00001e50| 52 45 20 53 65 74 55 70 | 4d 65 6e 75 73 3b 0d 0d |RE SetUp|Menus;..|
|00001e60| 09 56 41 52 09 09 49 3a | 09 49 4e 54 45 47 45 52 |.VAR..I:|.INTEGER|
|00001e70| 3b 0d 0d 42 45 47 49 4e | 0d 09 7b 20 52 65 61 64 |;..BEGIN|..{ Read|
|00001e80| 20 6d 65 6e 75 20 64 65 | 73 63 72 69 70 74 69 6f | menu de|scriptio|
|00001e90| 6e 73 20 66 72 6f 6d 20 | 72 65 73 6f 75 72 63 65 |ns from |resource|
|00001ea0| 20 66 69 6c 65 20 69 6e | 74 6f 20 6d 65 6d 6f 72 | file in|to memor|
|00001eb0| 79 20 61 6e 64 20 73 74 | 6f 72 65 20 68 61 6e 64 |y and st|ore hand|
|00001ec0| 6c 65 73 0d 09 69 6e 20 | 6d 79 4d 65 6e 75 73 20 |les..in |myMenus |
|00001ed0| 61 72 72 61 79 20 7d 0d | 09 6d 79 4d 65 6e 75 73 |array }.|.myMenus|
|00001ee0| 5b 61 70 70 6c 65 4d 5d | 20 3a 3d 20 47 65 74 4d |[appleM]| := GetM|
|00001ef0| 65 6e 75 28 61 70 70 6c | 65 49 44 29 3b 09 7b 72 |enu(appl|eID);.{r|
|00001f00| 65 61 64 20 41 70 70 6c | 65 20 6d 65 6e 75 20 66 |ead Appl|e menu f|
|00001f10| 72 6f 6d 20 72 65 73 6f | 75 72 63 65 20 66 69 6c |rom reso|urce fil|
|00001f20| 65 7d 0d 09 41 64 64 52 | 65 73 4d 65 6e 75 28 6d |e}..AddR|esMenu(m|
|00001f30| 79 4d 65 6e 75 73 5b 61 | 70 70 6c 65 4d 5d 2c 20 |yMenus[a|ppleM], |
|00001f40| 27 44 52 56 52 27 29 3b | 09 7b 61 64 64 20 64 65 |'DRVR');|.{add de|
|00001f50| 73 6b 20 61 63 63 65 73 | 73 6f 72 79 20 6e 61 6d |sk acces|sory nam|
|00001f60| 65 73 20 74 6f 20 41 70 | 70 6c 65 20 6d 65 6e 75 |es to Ap|ple menu|
|00001f70| 7d 0d 09 6d 79 4d 65 6e | 75 73 5b 66 69 6c 65 4d |}..myMen|us[fileM|
|00001f80| 5d 20 3a 3d 20 47 65 74 | 4d 65 6e 75 28 66 69 6c |] := Get|Menu(fil|
|00001f90| 65 49 44 29 3b 09 09 7b | 72 65 61 64 20 66 69 6c |eID);..{|read fil|
|00001fa0| 65 20 6d 65 6e 75 20 66 | 72 6f 6d 20 72 65 73 6f |e menu f|rom reso|
|00001fb0| 75 72 63 65 20 66 69 6c | 65 7d 0d 09 6d 79 4d 65 |urce fil|e}..myMe|
|00001fc0| 6e 75 73 5b 65 64 69 74 | 4d 5d 20 3a 3d 20 47 65 |nus[edit|M] := Ge|
|00001fd0| 74 4d 65 6e 75 28 65 64 | 69 74 49 44 29 3b 09 09 |tMenu(ed|itID);..|
|00001fe0| 7b 72 65 61 64 20 65 64 | 69 74 20 6d 65 6e 75 20 |{read ed|it menu |
|00001ff0| 66 72 6f 6d 20 72 65 73 | 6f 75 72 63 65 20 66 69 |from res|ource fi|
|00002000| 6c 65 7d 0d 0d 09 46 4f | 52 20 49 20 3a 3d 20 31 |le}...FO|R I := 1|
|00002010| 20 54 4f 20 6d 65 6e 75 | 43 6f 75 6e 74 20 44 4f | TO menu|Count DO|
|00002020| 20 49 6e 73 65 72 74 4d | 65 6e 75 28 6d 79 4d 65 | InsertM|enu(myMe|
|00002030| 6e 75 73 5b 49 5d 2c 20 | 30 29 3b 20 7b 69 6e 73 |nus[I], |0); {ins|
|00002040| 74 61 6c 6c 20 6d 65 6e | 75 73 20 69 6e 20 6d 65 |tall men|us in me|
|00002050| 6e 75 20 62 61 72 7d 0d | 09 0d 09 44 72 61 77 4d |nu bar}.|...DrawM|
|00002060| 65 6e 75 42 61 72 3b 09 | 09 09 09 09 09 09 7b 61 |enuBar;.|......{a|
|00002070| 6e 64 20 64 72 61 77 20 | 6d 65 6e 75 20 62 61 72 |nd draw |menu bar|
|00002080| 7d 0d 45 4e 44 3b 20 7b | 20 53 65 74 55 70 4d 65 |}.END; {| SetUpMe|
|00002090| 6e 75 73 20 7d 0d 0d 0d | 09 7b 20 55 73 65 20 74 |nus }...|.{ Use t|
|000020a0| 68 65 20 50 61 6c 65 74 | 74 65 20 63 75 72 72 65 |he Palet|te curre|
|000020b0| 6e 74 6c 79 20 61 74 74 | 61 63 68 65 64 20 74 6f |ntly att|ached to|
|000020c0| 20 74 68 65 20 6d 61 69 | 6e 20 77 69 6e 64 6f 77 | the mai|n window|
|000020d0| 20 74 6f 20 61 6e 69 6d | 61 74 65 20 74 68 65 20 | to anim|ate the |
|000020e0| 63 6f 6c 6f 72 73 20 0d | 09 69 6e 20 74 68 65 20 |colors .|.in the |
|000020f0| 63 69 72 63 75 6c 61 72 | 20 65 79 65 20 73 68 61 |circular| eye sha|
|00002100| 70 65 73 2e 20 20 54 68 | 69 73 20 77 69 6c 6c 20 |pes. Th|is will |
|00002110| 72 6f 74 61 74 65 20 74 | 68 65 6d 20 61 72 6f 75 |rotate t|hem arou|
|00002120| 6e 64 20 74 6f 20 67 69 | 76 65 20 74 68 65 20 66 |nd to gi|ve the f|
|00002130| 6c 6f 77 69 6e 67 20 0d | 09 74 75 62 65 20 65 66 |lowing .|.tube ef|
|00002140| 66 65 63 74 2e 20 57 65 | 20 6d 61 6b 65 20 74 68 |fect. We| make th|
|00002150| 65 20 70 61 6c 65 74 74 | 65 20 69 6e 74 6f 20 61 |e palett|e into a|
|00002160| 20 63 6f 6c 6f 72 20 74 | 61 62 6c 65 20 73 6f 20 | color t|able so |
|00002170| 77 65 20 63 61 6e 20 6d | 6f 76 65 20 65 6e 74 72 |we can m|ove entr|
|00002180| 69 65 73 20 0d 09 61 72 | 6f 75 6e 64 2e 09 57 65 |ies ..ar|ound..We|
|00002190| 20 68 61 76 65 20 74 6f | 20 73 6b 69 70 20 74 68 | have to| skip th|
|000021a0| 65 20 66 69 72 73 74 20 | 74 77 6f 20 65 6e 74 72 |e first |two entr|
|000021b0| 69 65 73 20 73 69 6e 63 | 65 20 74 68 6f 73 65 20 |ies sinc|e those |
|000021c0| 61 72 65 20 62 6c 61 63 | 6b 20 61 6e 64 20 77 68 |are blac|k and wh|
|000021d0| 69 74 65 2e 20 0d 09 28 | 65 6e 74 72 69 65 73 20 |ite. ..(|entries |
|000021e0| 30 20 61 6e 64 20 31 29 | 20 7d 0d 50 52 4f 43 45 |0 and 1)| }.PROCE|
|000021f0| 44 55 52 45 20 53 68 69 | 66 74 79 43 6f 6c 6f 72 |DURE Shi|ftyColor|
|00002200| 73 3b 0d 09 0d 09 56 41 | 52 09 09 63 75 72 72 50 |s;....VA|R..currP|
|00002210| 61 6c 65 74 74 65 3a 09 | 50 61 6c 65 74 74 65 48 |alette:.|PaletteH|
|00002220| 61 6e 64 6c 65 3b 0d 09 | 09 09 64 65 73 74 43 54 |andle;..|..destCT|
|00002230| 61 62 3a 09 09 43 54 61 | 62 48 61 6e 64 6c 65 3b |ab:..CTa|bHandle;|
|00002240| 0d 09 09 09 6c 61 73 74 | 43 53 70 65 63 3a 09 09 |....last|CSpec:..|
|00002250| 43 6f 6c 6f 72 53 70 65 | 63 3b 0d 09 0d 42 45 47 |ColorSpe|c;...BEG|
|00002260| 49 4e 0d 09 53 65 74 50 | 6f 72 74 20 28 6d 79 57 |IN..SetP|ort (myW|
|00002270| 69 6e 64 6f 77 29 3b 0d | 09 0d 09 63 75 72 72 50 |indow);.|...currP|
|00002280| 61 6c 65 74 74 65 20 3a | 3d 20 47 65 74 50 61 6c |alette :|= GetPal|
|00002290| 65 74 74 65 28 6d 79 57 | 69 6e 64 6f 77 29 3b 0d |ette(myW|indow);.|
|000022a0| 09 64 65 73 74 43 54 61 | 62 20 3a 3d 20 43 54 61 |.destCTa|b := CTa|
|000022b0| 62 48 61 6e 64 6c 65 20 | 28 4e 65 77 48 61 6e 64 |bHandle |(NewHand|
|000022c0| 6c 65 20 28 53 49 5a 45 | 4f 46 20 28 43 6f 6c 6f |le (SIZE|OF (Colo|
|000022d0| 72 54 61 62 6c 65 29 2b | 28 74 6f 74 61 6c 43 6f |rTable)+|(totalCo|
|000022e0| 6c 6f 72 73 2a 53 49 5a | 45 4f 46 28 43 6f 6c 6f |lors*SIZ|EOF(Colo|
|000022f0| 72 53 70 65 63 29 29 29 | 29 3b 0d 09 49 46 20 64 |rSpec)))|);..IF d|
|00002300| 65 73 74 43 54 61 62 20 | 3d 20 4e 49 4c 20 20 54 |estCTab |= NIL T|
|00002310| 48 45 4e 20 45 78 69 74 | 20 28 53 68 69 66 74 79 |HEN Exit| (Shifty|
|00002320| 43 6f 6c 6f 72 73 29 3b | 0d 09 50 61 6c 65 74 74 |Colors);|..Palett|
|00002330| 65 32 43 54 61 62 28 63 | 75 72 72 50 61 6c 65 74 |e2CTab(c|urrPalet|
|00002340| 74 65 2c 20 64 65 73 74 | 43 54 61 62 29 3b 0d 09 |te, dest|CTab);..|
|00002350| 0d 09 09 7b 20 4d 6f 76 | 65 20 74 68 65 20 63 6f |...{ Mov|e the co|
|00002360| 6c 6f 72 73 20 61 72 6f | 75 6e 64 20 69 6e 20 74 |lors aro|und in t|
|00002370| 68 65 20 63 6f 6c 6f 72 | 20 74 61 62 6c 65 2c 20 |he color| table, |
|00002380| 73 6b 69 70 70 69 6e 67 | 20 30 20 61 6e 64 20 31 |skipping| 0 and 1|
|00002390| 2c 20 61 6e 64 20 6d 6f | 76 69 6e 67 0d 09 09 61 |, and mo|ving...a|
|000023a0| 6c 6c 20 74 68 65 20 65 | 6c 65 6d 65 6e 74 73 20 |ll the e|lements |
|000023b0| 64 6f 77 6e 20 62 79 20 | 6f 6e 65 2c 20 61 6e 64 |down by |one, and|
|000023c0| 20 63 6f 70 79 69 6e 67 | 20 74 68 65 20 65 6c 65 | copying| the ele|
|000023d0| 6d 65 6e 74 20 61 74 20 | 32 20 62 61 63 6b 20 74 |ment at |2 back t|
|000023e0| 6f 20 74 68 65 20 0d 09 | 09 65 6e 64 20 6f 66 20 |o the ..|.end of |
|000023f0| 74 68 65 20 74 61 62 6c | 65 2e 20 54 68 65 20 65 |the tabl|e. The e|
|00002400| 66 66 65 63 74 20 69 73 | 20 74 6f 20 72 6f 74 61 |ffect is| to rota|
|00002410| 74 65 20 74 68 65 20 63 | 6f 6c 6f 72 73 20 69 6e |te the c|olors in|
|00002420| 20 74 68 65 20 74 61 62 | 6c 65 2e 09 7d 0d 09 6c | the tab|le..}..l|
|00002430| 61 73 74 43 53 70 65 63 | 20 3a 3d 20 64 65 73 74 |astCSpec| := dest|
|00002440| 43 54 61 62 5e 5e 2e 63 | 74 54 61 62 6c 65 5b 32 |CTab^^.c|tTable[2|
|00002450| 5d 3b 09 09 09 09 09 09 | 09 7b 20 70 75 6c 6c 20 |];......|.{ pull |
|00002460| 66 69 72 73 74 20 6f 6e | 65 20 6f 66 66 2e 20 7d |first on|e off. }|
|00002470| 0d 09 42 6c 6f 63 6b 4d | 6f 76 65 20 28 40 64 65 |..BlockM|ove (@de|
|00002480| 73 74 43 54 61 62 5e 5e | 2e 63 74 54 61 62 6c 65 |stCTab^^|.ctTable|
|00002490| 5b 33 5d 2c 20 40 64 65 | 73 74 43 54 61 62 5e 5e |[3], @de|stCTab^^|
|000024a0| 2e 63 74 54 61 62 6c 65 | 5b 32 5d 2c 20 0d 09 09 |.ctTable|[2], ...|
|000024b0| 09 09 28 6e 75 6d 43 6f | 6c 6f 72 73 29 20 2a 20 |..(numCo|lors) * |
|000024c0| 53 49 5a 45 4f 46 20 28 | 43 6f 6c 6f 72 53 70 65 |SIZEOF (|ColorSpe|
|000024d0| 63 29 20 29 3b 09 09 09 | 09 7b 20 63 6f 70 79 20 |c) );...|.{ copy |
|000024e0| 61 6c 6c 20 6f 6e 65 20 | 65 6e 74 72 79 20 64 6f |all one |entry do|
|000024f0| 77 6e 2e 20 7d 0d 09 64 | 65 73 74 43 54 61 62 5e |wn. }..d|estCTab^|
|00002500| 5e 2e 63 74 54 61 62 6c | 65 5b 74 6f 74 61 6c 43 |^.ctTabl|e[totalC|
|00002510| 6f 6c 6f 72 73 2d 31 5d | 20 3a 3d 20 6c 61 73 74 |olors-1]| := last|
|00002520| 43 53 70 65 63 3b 09 09 | 09 09 7b 20 70 75 74 20 |CSpec;..|..{ put |
|00002530| 6c 61 73 74 20 63 6f 6c | 6f 72 20 62 61 63 6b 20 |last col|or back |
|00002540| 6f 6e 20 66 72 6f 6e 74 | 2e 20 7d 0d 09 09 0d 09 |on front|. }.....|
|00002550| 41 6e 69 6d 61 74 65 50 | 61 6c 65 74 74 65 28 6d |AnimateP|alette(m|
|00002560| 79 57 69 6e 64 6f 77 2c | 20 64 65 73 74 43 54 61 |yWindow,| destCTa|
|00002570| 62 2c 20 32 2c 20 32 2c | 20 6e 75 6d 43 6f 6c 6f |b, 2, 2,| numColo|
|00002580| 72 73 29 3b 0d 09 0d 09 | 44 69 73 70 6f 73 48 61 |rs);....|DisposHa|
|00002590| 6e 64 6c 65 20 28 48 61 | 6e 64 6c 65 20 28 64 65 |ndle (Ha|ndle (de|
|000025a0| 73 74 43 54 61 62 29 29 | 3b 0d 45 4e 44 3b 09 7b |stCTab))|;.END;.{|
|000025b0| 20 53 68 69 66 74 79 43 | 6f 6c 6f 72 73 20 7d 0d | ShiftyC|olors }.|
|000025c0| 0d 0d 09 7b 20 44 69 73 | 70 6c 61 79 20 74 68 65 |...{ Dis|play the|
|000025d0| 20 64 69 61 6c 6f 67 20 | 62 6f 78 20 69 6e 20 72 | dialog |box in r|
|000025e0| 65 73 70 6f 6e 73 65 20 | 74 6f 20 74 68 65 20 27 |esponse |to the '|
|000025f0| 41 62 6f 75 74 20 54 75 | 62 65 54 65 73 74 27 20 |About Tu|beTest' |
|00002600| 6d 65 6e 75 20 69 74 65 | 6d 2e 20 7d 0d 50 52 4f |menu ite|m. }.PRO|
|00002610| 43 45 44 55 52 45 20 53 | 68 6f 77 41 62 6f 75 74 |CEDURE S|howAbout|
|00002620| 4d 65 44 69 61 6c 6f 67 | 3b 0d 0d 09 56 41 52 09 |MeDialog|;...VAR.|
|00002630| 09 74 68 65 44 69 61 6c | 6f 67 3a 09 44 69 61 6c |.theDial|og:.Dial|
|00002640| 6f 67 50 74 72 3b 0d 09 | 09 09 69 74 65 6d 48 69 |ogPtr;..|..itemHi|
|00002650| 74 3a 09 49 6e 74 65 67 | 65 72 3b 0d 0d 42 45 47 |t:.Integ|er;..BEG|
|00002660| 49 4e 0d 09 74 68 65 44 | 69 61 6c 6f 67 20 3a 3d |IN..theD|ialog :=|
|00002670| 20 47 65 74 4e 65 77 44 | 69 61 6c 6f 67 28 61 62 | GetNewD|ialog(ab|
|00002680| 6f 75 74 4d 65 44 4c 4f | 47 2c 20 4e 49 4c 2c 20 |outMeDLO|G, NIL, |
|00002690| 57 69 6e 64 6f 77 50 74 | 72 28 20 2d 20 31 29 29 |WindowPt|r( - 1))|
|000026a0| 3b 0d 09 4d 6f 64 61 6c | 44 69 61 6c 6f 67 28 4e |;..Modal|Dialog(N|
|000026b0| 49 4c 2c 20 69 74 65 6d | 48 69 74 29 3b 0d 09 44 |IL, item|Hit);..D|
|000026c0| 69 73 70 6f 73 44 69 61 | 6c 6f 67 28 74 68 65 44 |isposDia|log(theD|
|000026d0| 69 61 6c 6f 67 29 3b 0d | 45 4e 44 3b 20 7b 20 53 |ialog);.|END; { S|
|000026e0| 68 6f 77 41 62 6f 75 74 | 4d 65 44 69 61 6c 6f 67 |howAbout|MeDialog|
|000026f0| 20 7d 0d 0d 0d 09 7b 20 | 45 78 65 63 75 74 65 20 | }....{ |Execute |
|00002700| 6d 65 6e 75 20 63 6f 6d | 6d 61 6e 64 20 73 70 65 |menu com|mand spe|
|00002710| 63 69 66 69 65 64 20 62 | 79 20 6d 52 65 73 75 6c |cified b|y mResul|
|00002720| 74 2c 20 74 68 65 20 72 | 65 73 75 6c 74 20 6f 66 |t, the r|esult of|
|00002730| 20 4d 65 6e 75 53 65 6c | 65 63 74 20 7d 0d 50 52 | MenuSel|ect }.PR|
|00002740| 4f 43 45 44 55 52 45 20 | 44 6f 43 6f 6d 6d 61 6e |OCEDURE |DoComman|
|00002750| 64 28 6d 52 65 73 75 6c | 74 3a 20 4c 4f 4e 47 49 |d(mResul|t: LONGI|
|00002760| 4e 54 29 3b 0d 0d 09 56 | 41 52 09 09 74 68 65 49 |NT);...V|AR..theI|
|00002770| 74 65 6d 3a 09 49 4e 54 | 45 47 45 52 3b 09 09 09 |tem:.INT|EGER;...|
|00002780| 09 7b 20 6d 65 6e 75 20 | 69 74 65 6d 20 6e 75 6d |.{ menu |item num|
|00002790| 62 65 72 20 66 72 6f 6d | 20 6d 52 65 73 75 6c 74 |ber from| mResult|
|000027a0| 20 6c 6f 77 2d 6f 72 64 | 65 72 20 77 6f 72 64 20 | low-ord|er word |
|000027b0| 7d 0d 09 09 09 74 68 65 | 4d 65 6e 75 3a 09 49 4e |}....the|Menu:.IN|
|000027c0| 54 45 47 45 52 3b 09 09 | 09 09 7b 20 6d 65 6e 75 |TEGER;..|..{ menu|
|000027d0| 20 6e 75 6d 62 65 72 20 | 66 72 6f 6d 20 6d 52 65 | number |from mRe|
|000027e0| 73 75 6c 74 20 68 69 67 | 68 2d 6f 72 64 65 72 20 |sult hig|h-order |
|000027f0| 77 6f 72 64 20 7d 0d 09 | 09 09 6e 61 6d 65 3a 20 |word }..|..name: |
|00002800| 09 09 53 74 72 32 35 35 | 3b 09 09 09 09 09 7b 20 |..Str255|;.....{ |
|00002810| 64 65 73 6b 20 61 63 63 | 65 73 73 6f 72 79 20 6e |desk acc|essory n|
|00002820| 61 6d 65 20 7d 0d 09 09 | 09 74 65 6d 70 3a 20 09 |ame }...|.temp: .|
|00002830| 09 49 4e 54 45 47 45 52 | 3b 0d 09 09 09 64 75 6d |.INTEGER|;....dum|
|00002840| 6d 79 3a 09 09 42 6f 6f | 6c 65 61 6e 3b 0d 0d 42 |my:..Boo|lean;..B|
|00002850| 45 47 49 4e 0d 09 74 68 | 65 49 74 65 6d 20 3a 3d |EGIN..th|eItem :=|
|00002860| 20 4c 6f 57 6f 72 64 28 | 6d 52 65 73 75 6c 74 29 | LoWord(|mResult)|
|00002870| 3b 09 09 09 09 09 7b 20 | 63 61 6c 6c 20 54 6f 6f |;.....{ |call Too|
|00002880| 6c 62 6f 78 20 55 74 69 | 6c 69 74 79 20 72 6f 75 |lbox Uti|lity rou|
|00002890| 74 69 6e 65 73 20 74 6f | 20 7d 0d 09 74 68 65 4d |tines to| }..theM|
|000028a0| 65 6e 75 20 3a 3d 20 48 | 69 57 6f 72 64 28 6d 52 |enu := H|iWord(mR|
|000028b0| 65 73 75 6c 74 29 3b 09 | 09 09 09 09 7b 20 73 65 |esult);.|....{ se|
|000028c0| 74 20 6d 65 6e 75 20 69 | 74 65 6d 20 6e 75 6d 62 |t menu i|tem numb|
|000028d0| 65 72 20 61 6e 64 20 6d | 65 6e 75 20 7d 0d 0d 09 |er and m|enu }...|
|000028e0| 43 41 53 45 20 74 68 65 | 4d 65 6e 75 20 4f 46 09 |CASE the|Menu OF.|
|000028f0| 09 09 09 09 09 09 09 7b | 20 63 61 73 65 20 6f 6e |.......{| case on|
|00002900| 20 6d 65 6e 75 20 49 44 | 20 7d 0d 0d 09 09 61 70 | menu ID| }....ap|
|00002910| 70 6c 65 49 44 3a 0d 09 | 09 09 49 46 20 28 74 68 |pleID:..|..IF (th|
|00002920| 65 49 74 65 6d 20 3d 20 | 61 62 6f 75 74 4d 65 43 |eItem = |aboutMeC|
|00002930| 6f 6d 6d 61 6e 64 29 20 | 54 48 45 4e 20 20 53 68 |ommand) |THEN Sh|
|00002940| 6f 77 41 62 6f 75 74 4d | 65 44 69 61 6c 6f 67 0d |owAboutM|eDialog.|
|00002950| 09 09 09 45 4c 53 45 0d | 09 09 09 09 42 45 47 49 |...ELSE.|....BEGI|
|00002960| 4e 09 09 09 09 09 09 09 | 7b 20 63 61 6c 6c 20 4d |N.......|{ call M|
|00002970| 65 6e 75 20 4d 61 6e 61 | 67 65 72 20 74 6f 20 67 |enu Mana|ger to g|
|00002980| 65 74 20 64 65 73 6b 20 | 61 63 63 2e 7d 0d 09 09 |et desk |acc.}...|
|00002990| 09 09 09 47 65 74 49 74 | 65 6d 28 6d 79 4d 65 6e |...GetIt|em(myMen|
|000029a0| 75 73 5b 61 70 70 6c 65 | 4d 5d 2c 20 74 68 65 49 |us[apple|M], theI|
|000029b0| 74 65 6d 2c 20 6e 61 6d | 65 29 3b 0d 09 09 09 09 |tem, nam|e);.....|
|000029c0| 09 74 65 6d 70 20 3a 3d | 20 4f 70 65 6e 44 65 73 |.temp :=| OpenDes|
|000029d0| 6b 41 63 63 28 6e 61 6d | 65 29 3b 0d 09 09 09 09 |kAcc(nam|e);.....|
|000029e0| 09 53 65 74 50 6f 72 74 | 28 6d 79 57 69 6e 64 6f |.SetPort|(myWindo|
|000029f0| 77 29 3b 0d 09 09 09 09 | 45 4e 44 3b 20 7b 20 61 |w);.....|END; { a|
|00002a00| 70 70 6c 65 49 44 20 7d | 0d 0d 09 09 66 69 6c 65 |ppleID }|....file|
|00002a10| 49 44 3a 0d 09 09 09 42 | 45 47 49 4e 0d 09 09 09 |ID:....B|EGIN....|
|00002a20| 09 49 46 20 74 68 65 49 | 74 65 6d 20 3d 20 71 75 |.IF theI|tem = qu|
|00002a30| 69 74 49 74 65 6d 20 54 | 48 45 4e 20 64 6f 6e 65 |itItem T|HEN done|
|00002a40| 46 6c 61 67 20 3a 3d 20 | 54 52 55 45 3b 0d 09 09 |Flag := |TRUE;...|
|00002a50| 09 09 0d 09 09 09 09 49 | 46 20 74 68 65 49 74 65 |.......I|F theIte|
|00002a60| 6d 20 3d 20 74 75 62 75 | 6c 61 72 49 74 65 6d 20 |m = tubu|larItem |
|00002a70| 54 48 45 4e 20 42 45 47 | 49 4e 0d 09 09 09 09 09 |THEN BEG|IN......|
|00002a80| 74 75 62 65 43 68 65 63 | 6b 20 3a 3d 20 4e 4f 54 |tubeChec|k := NOT|
|00002a90| 20 74 75 62 65 43 68 65 | 63 6b 3b 0d 09 09 09 09 | tubeChe|ck;.....|
|00002aa0| 09 43 68 65 63 6b 49 74 | 65 6d 28 6d 79 4d 65 6e |.CheckIt|em(myMen|
|00002ab0| 75 73 5b 66 69 6c 65 4d | 5d 2c 20 74 75 62 75 6c |us[fileM|], tubul|
|00002ac0| 61 72 49 74 65 6d 2c 20 | 74 75 62 65 43 68 65 63 |arItem, |tubeChec|
|00002ad0| 6b 29 3b 0d 09 09 09 09 | 45 4e 44 3b 0d 09 09 09 |k);.....|END;....|
|00002ae0| 45 4e 44 3b 09 7b 20 66 | 69 6c 65 49 44 20 7d 0d |END;.{ f|ileID }.|
|00002af0| 0d 09 09 65 64 69 74 49 | 44 3a 0d 09 09 09 09 64 |...editI|D:.....d|
|00002b00| 75 6d 6d 79 20 3a 3d 20 | 53 79 73 74 65 6d 45 64 |ummy := |SystemEd|
|00002b10| 69 74 28 74 68 65 49 74 | 65 6d 20 2d 20 31 29 3b |it(theIt|em - 1);|
|00002b20| 7b 20 50 61 73 73 20 74 | 68 65 20 63 6f 6d 6d 61 |{ Pass t|he comma|
|00002b30| 6e 64 20 6f 6e 20 74 6f | 20 74 68 65 20 44 65 73 |nd on to| the Des|
|00002b40| 6b 20 4d 61 6e 61 67 65 | 72 2e 7d 0d 0d 09 45 4e |k Manage|r.}...EN|
|00002b50| 44 3b 20 7b 6f 66 20 6d | 65 6e 75 20 43 41 53 45 |D; {of m|enu CASE|
|00002b60| 7d 0d 0d 09 48 69 6c 69 | 74 65 4d 65 6e 75 28 30 |}...Hili|teMenu(0|
|00002b70| 29 3b 09 09 09 09 09 09 | 7b 20 55 6e 68 69 67 68 |);......|{ Unhigh|
|00002b80| 6c 69 67 68 74 20 6d 65 | 6e 75 20 74 69 74 6c 65 |light me|nu title|
|00002b90| 28 68 69 67 68 6c 69 67 | 68 74 65 64 20 62 79 20 |(highlig|hted by |
|00002ba0| 4d 65 6e 75 53 65 6c 65 | 63 74 29 20 7d 0d 45 4e |MenuSele|ct) }.EN|
|00002bb0| 44 3b 20 7b 6f 66 20 44 | 6f 43 6f 6d 6d 61 6e 64 |D; {of D|oCommand|
|00002bc0| 7d 0d 0d 0d 42 45 47 49 | 4e 20 20 7b 20 4d 61 69 |}...BEGI|N { Mai|
|00002bd0| 6e 20 7d 0d 09 7b 20 54 | 65 73 74 20 74 68 65 20 |n }..{ T|est the |
|00002be0| 63 6f 6d 70 75 74 65 72 | 20 74 6f 20 62 65 20 73 |computer| to be s|
|00002bf0| 75 72 65 20 77 65 20 63 | 61 6e 20 64 6f 20 63 6f |ure we c|an do co|
|00002c00| 6c 6f 72 2e 20 20 49 66 | 20 6e 6f 74 20 77 65 20 |lor. If| not we |
|00002c10| 77 6f 75 6c 64 20 63 72 | 61 73 68 2c 20 77 68 69 |would cr|ash, whi|
|00002c20| 63 68 0d 09 77 6f 75 6c | 64 20 62 65 20 62 61 64 |ch..woul|d be bad|
|00002c30| 2e 20 20 49 66 20 77 65 | 20 63 61 6e d5 74 20 72 |. If we| can.t r|
|00002c40| 75 6e 2c 20 6a 75 73 74 | 20 62 65 65 70 20 61 6e |un, just| beep an|
|00002c50| 64 20 65 78 69 74 2e 20 | 7d 0d 09 65 72 72 6f 72 |d exit. |}..error|
|00002c60| 20 3a 3d 20 53 79 73 45 | 6e 76 69 72 6f 6e 73 28 | := SysE|nvirons(|
|00002c70| 31 2c 20 74 68 65 57 6f | 72 6c 64 29 3b 0d 09 49 |1, theWo|rld);..I|
|00002c80| 46 20 4e 4f 54 20 74 68 | 65 57 6f 72 6c 64 2e 68 |F NOT th|eWorld.h|
|00002c90| 61 73 43 6f 6c 6f 72 51 | 44 20 54 48 45 4e 20 42 |asColorQ|D THEN B|
|00002ca0| 45 47 49 4e 0d 09 09 53 | 79 73 42 65 65 70 20 28 |EGIN...S|ysBeep (|
|00002cb0| 35 30 29 3b 0d 09 09 45 | 78 69 74 54 6f 53 68 65 |50);...E|xitToShe|
|00002cc0| 6c 6c 3b 09 09 09 09 7b | 20 49 66 20 6e 6f 20 63 |ll;....{| If no c|
|00002cd0| 6f 6c 6f 72 20 51 44 2c | 20 77 65 20 6d 75 73 74 |olor QD,| we must|
|00002ce0| 20 6c 65 61 76 65 2e 20 | 7d 0d 09 45 4e 44 3b 0d | leave. |}..END;.|
|00002cf0| 0d 09 49 6e 69 74 47 72 | 61 66 28 40 74 68 65 50 |..InitGr|af(@theP|
|00002d00| 6f 72 74 29 3b 0d 09 49 | 6e 69 74 46 6f 6e 74 73 |ort);..I|nitFonts|
|00002d10| 3b 0d 09 49 6e 69 74 57 | 69 6e 64 6f 77 73 3b 0d |;..InitW|indows;.|
|00002d20| 09 49 6e 69 74 4d 65 6e | 75 73 3b 0d 09 54 45 49 |.InitMen|us;..TEI|
|00002d30| 6e 69 74 3b 0d 09 49 6e | 69 74 44 69 61 6c 6f 67 |nit;..In|itDialog|
|00002d40| 73 28 4e 49 4c 29 3b 0d | 09 49 6e 69 74 43 75 72 |s(NIL);.|.InitCur|
|00002d50| 73 6f 72 3b 0d 0d 09 57 | 49 54 48 20 73 63 72 65 |sor;...W|ITH scre|
|00002d60| 65 6e 42 69 74 73 2e 62 | 6f 75 6e 64 73 20 44 4f |enBits.b|ounds DO|
|00002d70| 0d 09 09 53 65 74 52 65 | 63 74 28 64 72 61 67 52 |...SetRe|ct(dragR|
|00002d80| 65 63 74 2c 20 34 2c 20 | 32 34 2c 20 72 69 67 68 |ect, 4, |24, righ|
|00002d90| 74 20 2d 20 34 2c 20 62 | 6f 74 74 6f 6d 20 2d 20 |t - 4, b|ottom - |
|00002da0| 34 29 3b 0d 09 64 6f 6e | 65 46 6c 61 67 20 3a 3d |4);..don|eFlag :=|
|00002db0| 20 46 41 4c 53 45 3b 09 | 09 09 09 7b 20 66 6c 61 | FALSE;.|...{ fla|
|00002dc0| 67 20 74 6f 20 64 65 74 | 65 63 74 20 77 68 65 6e |g to det|ect when|
|00002dd0| 20 51 75 69 74 20 63 6f | 6d 6d 61 6e 64 20 69 73 | Quit co|mmand is|
|00002de0| 20 63 68 6f 73 65 6e 7d | 0d 09 74 75 62 65 43 68 | chosen}|..tubeCh|
|00002df0| 65 63 6b 20 3a 3d 20 46 | 41 4c 53 45 3b 09 09 09 |eck := F|ALSE;...|
|00002e00| 09 7b 20 66 6c 61 67 20 | 66 6f 72 20 61 6e 69 6d |.{ flag |for anim|
|00002e10| 61 74 69 6e 67 20 63 6f | 6c 6f 72 20 69 73 20 69 |ating co|lor is i|
|00002e20| 6e 69 74 69 61 6c 6c 79 | 20 6f 66 66 2e 20 7d 0d |nitially| off. }.|
|00002e30| 0d 09 09 7b 20 4f 70 65 | 6e 20 74 68 65 20 63 6f |...{ Ope|n the co|
|00002e40| 6c 6f 72 20 77 69 6e 64 | 6f 77 2e 20 7d 0d 09 6d |lor wind|ow. }..m|
|00002e50| 79 57 69 6e 64 6f 77 20 | 3a 3d 20 47 65 74 4e 65 |yWindow |:= GetNe|
|00002e60| 77 43 57 69 6e 64 6f 77 | 28 77 69 6e 64 6f 77 49 |wCWindow|(windowI|
|00002e70| 44 2c 20 4e 49 4c 2c 20 | 50 4f 49 4e 54 45 52 28 |D, NIL, |POINTER(|
|00002e80| 2d 31 29 29 3b 0d 09 53 | 65 74 50 6f 72 74 28 6d |-1));..S|etPort(m|
|00002e90| 79 57 69 6e 64 6f 77 29 | 3b 0d 0d 09 09 7b 20 53 |yWindow)|;....{ S|
|00002ea0| 65 74 20 75 70 20 6d 65 | 6e 75 73 20 6c 61 73 74 |et up me|nus last|
|00002eb0| 2c 20 73 69 6e 63 65 20 | 74 68 65 20 6d 65 6e 75 |, since |the menu|
|00002ec0| 20 64 72 61 77 69 6e 67 | 20 63 61 6e 20 74 68 65 | drawing| can the|
|00002ed0| 6e 20 75 73 65 20 74 68 | 65 20 70 61 6c 65 74 74 |n use th|e palett|
|00002ee0| 65 20 77 65 20 68 61 76 | 65 20 66 6f 72 20 6f 75 |e we hav|e for ou|
|00002ef0| 0d 09 09 77 69 6e 64 6f | 77 2e 20 4d 61 6b 65 73 |...windo|w. Makes|
|00002f00| 20 74 68 65 20 41 70 70 | 6c 65 20 6c 6f 6f 6b 20 | the App|le look |
|00002f10| 62 65 74 74 65 72 2c 20 | 69 6e 20 70 61 72 74 69 |better, |in parti|
|00002f20| 63 75 6c 61 72 2e 20 7d | 0d 09 53 65 74 55 70 4d |cular. }|..SetUpM|
|00002f30| 65 6e 75 73 3b 0d 09 0d | 09 7b 20 4d 61 69 6e 20 |enus;...|.{ Main |
|00002f40| 45 76 65 6e 74 20 4c 6f | 6f 70 20 7d 0d 09 52 45 |Event Lo|op }..RE|
|00002f50| 50 45 41 54 0d 09 09 53 | 79 73 74 65 6d 54 61 73 |PEAT...S|ystemTas|
|00002f60| 6b 3b 0d 0d 09 09 49 46 | 20 47 65 74 4e 65 78 74 |k;....IF| GetNext|
|00002f70| 45 76 65 6e 74 28 65 76 | 65 72 79 45 76 65 6e 74 |Event(ev|eryEvent|
|00002f80| 2c 20 6d 79 45 76 65 6e | 74 29 20 54 48 45 4e 0d |, myEven|t) THEN.|
|00002f90| 09 09 09 43 41 53 45 20 | 6d 79 45 76 65 6e 74 2e |...CASE |myEvent.|
|00002fa0| 77 68 61 74 20 4f 46 09 | 09 09 7b 20 63 61 73 65 |what OF.|..{ case|
|00002fb0| 20 6f 6e 20 65 76 65 6e | 74 20 74 79 70 65 7d 0d | on even|t type}.|
|00002fc0| 0d 09 09 09 09 6d 6f 75 | 73 65 44 6f 77 6e 3a 0d |.....mou|seDown:.|
|00002fd0| 09 09 09 09 09 43 41 53 | 45 20 46 69 6e 64 57 69 |.....CAS|E FindWi|
|00002fe0| 6e 64 6f 77 28 6d 79 45 | 76 65 6e 74 2e 77 68 65 |ndow(myE|vent.whe|
|00002ff0| 72 65 2c 20 77 68 69 63 | 68 57 69 6e 64 6f 77 29 |re, whic|hWindow)|
|00003000| 20 4f 46 0d 0d 09 09 09 | 09 09 09 69 6e 53 79 73 | OF.....|...inSys|
|00003010| 57 69 6e 64 6f 77 3a 09 | 09 09 09 7b 20 64 65 73 |Window:.|...{ des|
|00003020| 6b 20 61 63 63 65 73 73 | 6f 72 79 20 77 69 6e 64 |k access|ory wind|
|00003030| 6f 77 3a 20 63 61 6c 6c | 20 44 65 73 6b 20 4d 61 |ow: call| Desk Ma|
|00003040| 6e 61 67 65 72 20 74 6f | 20 68 61 6e 64 6c 65 20 |nager to| handle |
|00003050| 69 74 7d 0d 09 09 09 09 | 09 09 09 09 53 79 73 74 |it}.....|....Syst|
|00003060| 65 6d 43 6c 69 63 6b 28 | 6d 79 45 76 65 6e 74 2c |emClick(|myEvent,|
|00003070| 20 77 68 69 63 68 57 69 | 6e 64 6f 77 29 3b 0d 0d | whichWi|ndow);..|
|00003080| 09 09 09 09 09 09 69 6e | 4d 65 6e 75 42 61 72 3a |......in|MenuBar:|
|00003090| 09 09 09 09 09 7b 20 4d | 65 6e 75 20 62 61 72 3a |.....{ M|enu bar:|
|000030a0| 20 6c 65 61 72 6e 20 77 | 68 69 63 68 20 63 6f 6d | learn w|hich com|
|000030b0| 6d 61 6e 64 2c 20 74 68 | 65 6e 20 65 78 65 63 75 |mand, th|en execu|
|000030c0| 74 65 20 69 74 2e 20 7d | 0d 09 09 09 09 09 09 09 |te it. }|........|
|000030d0| 09 44 6f 43 6f 6d 6d 61 | 6e 64 28 4d 65 6e 75 53 |.DoComma|nd(MenuS|
|000030e0| 65 6c 65 63 74 28 6d 79 | 45 76 65 6e 74 2e 77 68 |elect(my|Event.wh|
|000030f0| 65 72 65 29 29 3b 0d 0d | 09 09 09 09 09 09 69 6e |ere));..|......in|
|00003100| 44 72 61 67 3a 09 09 09 | 09 09 09 7b 20 74 69 74 |Drag:...|...{ tit|
|00003110| 6c 65 20 62 61 72 3a 20 | 63 61 6c 6c 20 57 69 6e |le bar: |call Win|
|00003120| 64 6f 77 20 4d 61 6e 61 | 67 65 72 20 74 6f 20 64 |dow Mana|ger to d|
|00003130| 72 61 67 7d 0d 09 09 09 | 09 09 09 09 09 44 72 61 |rag}....|.....Dra|
|00003140| 67 57 69 6e 64 6f 77 28 | 77 68 69 63 68 57 69 6e |gWindow(|whichWin|
|00003150| 64 6f 77 2c 20 6d 79 45 | 76 65 6e 74 2e 77 68 65 |dow, myE|vent.whe|
|00003160| 72 65 2c 20 64 72 61 67 | 52 65 63 74 29 3b 0d 0d |re, drag|Rect);..|
|00003170| 09 09 09 09 09 09 69 6e | 43 6f 6e 74 65 6e 74 3a |......in|Content:|
|00003180| 09 09 09 09 09 7b 20 62 | 6f 64 79 20 6f 66 20 61 |.....{ b|ody of a|
|00003190| 70 70 6c 69 63 61 74 69 | 6f 6e 20 77 69 6e 64 6f |pplicati|on windo|
|000031a0| 77 3a 20 7d 0d 09 09 09 | 09 09 09 09 09 49 46 20 |w: }....|.....IF |
|000031b0| 77 68 69 63 68 57 69 6e | 64 6f 77 20 3c 3e 20 66 |whichWin|dow <> f|
|000031c0| 72 6f 6e 74 57 69 6e 64 | 6f 77 20 54 48 45 4e 0d |rontWind|ow THEN.|
|000031d0| 09 09 09 09 09 09 09 09 | 09 53 65 6c 65 63 74 57 |........|.SelectW|
|000031e0| 69 6e 64 6f 77 28 77 68 | 69 63 68 57 69 6e 64 6f |indow(wh|ichWindo|
|000031f0| 77 29 3b 20 7b 61 6e 64 | 20 6d 61 6b 65 20 69 74 |w); {and| make it|
|00003200| 20 61 63 74 69 76 65 20 | 69 66 20 6e 6f 74 7d 0d | active |if not}.|
|00003210| 09 09 09 09 09 45 4e 44 | 3b 20 7b 6f 66 20 6d 6f |.....END|; {of mo|
|00003220| 75 73 65 44 6f 77 6e 7d | 0d 0d 09 09 09 09 75 70 |useDown}|......up|
|00003230| 64 61 74 65 45 76 74 3a | 09 09 09 09 09 09 09 7b |dateEvt:|.......{|
|00003240| 20 55 70 64 61 74 65 20 | 74 68 65 20 65 79 65 73 | Update |the eyes|
|00003250| 20 69 6e 20 77 69 6e 64 | 6f 77 2e 20 7d 0d 09 09 | in wind|ow. }...|
|00003260| 09 09 09 49 46 20 57 69 | 6e 64 6f 77 50 74 72 28 |...IF Wi|ndowPtr(|
|00003270| 6d 79 45 76 65 6e 74 2e | 6d 65 73 73 61 67 65 29 |myEvent.|message)|
|00003280| 20 3d 20 6d 79 57 69 6e | 64 6f 77 20 54 48 45 4e | = myWin|dow THEN|
|00003290| 0d 09 09 09 09 09 09 42 | 45 47 49 4e 0d 09 09 09 |.......B|EGIN....|
|000032a0| 09 09 09 09 42 65 67 69 | 6e 55 70 64 61 74 65 28 |....Begi|nUpdate(|
|000032b0| 57 69 6e 64 6f 77 50 74 | 72 28 6d 79 45 76 65 6e |WindowPt|r(myEven|
|000032c0| 74 2e 6d 65 73 73 61 67 | 65 29 29 3b 0d 09 09 09 |t.messag|e));....|
|000032d0| 09 09 09 09 09 44 72 61 | 77 45 79 65 73 3b 0d 09 |.....Dra|wEyes;..|
|000032e0| 09 09 09 09 09 09 45 6e | 64 55 70 64 61 74 65 28 |......En|dUpdate(|
|000032f0| 57 69 6e 64 6f 77 50 74 | 72 28 6d 79 45 76 65 6e |WindowPt|r(myEven|
|00003300| 74 2e 6d 65 73 73 61 67 | 65 29 29 3b 0d 09 09 09 |t.messag|e));....|
|00003310| 09 09 09 45 4e 44 3b 20 | 7b 6f 66 20 75 70 64 61 |...END; |{of upda|
|00003320| 74 65 45 76 74 7d 0d 09 | 09 09 09 09 09 09 0d 09 |teEvt}..|........|
|00003330| 09 09 09 6b 65 79 44 6f | 77 6e 2c 20 61 75 74 6f |...keyDo|wn, auto|
|00003340| 4b 65 79 3a 09 09 09 09 | 09 7b 20 6b 65 79 20 70 |Key:....|.{ key p|
|00003350| 72 65 73 73 65 64 20 6f | 6e 63 65 20 6f 72 20 68 |ressed o|nce or h|
|00003360| 65 6c 64 20 64 6f 77 6e | 20 74 6f 20 72 65 70 65 |eld down| to repe|
|00003370| 61 74 20 7d 0d 09 09 09 | 09 09 49 46 20 6d 79 57 |at }....|..IF myW|
|00003380| 69 6e 64 6f 77 20 3d 20 | 66 72 6f 6e 74 57 69 6e |indow = |frontWin|
|00003390| 64 6f 77 20 54 48 45 4e | 0d 09 09 09 09 09 09 42 |dow THEN|.......B|
|000033a0| 45 47 49 4e 0d 09 09 09 | 09 09 09 09 74 68 65 43 |EGIN....|....theC|
|000033b0| 68 61 72 20 3a 3d 20 43 | 48 52 28 42 41 6e 64 28 |har := C|HR(BAnd(|
|000033c0| 6d 79 45 76 65 6e 74 2e | 6d 65 73 73 61 67 65 2c |myEvent.|message,|
|000033d0| 20 63 68 61 72 43 6f 64 | 65 4d 61 73 6b 29 29 3b | charCod|eMask));|
|000033e0| 20 7b 20 67 65 74 20 74 | 68 65 20 63 68 61 72 20 | { get t|he char |
|000033f0| 7d 0d 09 09 09 09 09 09 | 09 09 7b 20 49 66 20 43 |}.......|..{ If C|
|00003400| 6f 6d 6d 61 6e 64 20 6b | 65 79 20 64 6f 77 6e 2c |ommand k|ey down,|
|00003410| 20 64 6f 20 69 74 20 61 | 73 20 61 20 4d 65 6e 75 | do it a|s a Menu|
|00003420| 20 43 6f 6d 6d 61 6e 64 | 2e 20 7d 0d 09 09 09 09 | Command|. }.....|
|00003430| 09 09 09 49 46 20 42 41 | 6e 64 28 6d 79 45 76 65 |...IF BA|nd(myEve|
|00003440| 6e 74 2e 6d 6f 64 69 66 | 69 65 72 73 2c 20 63 6d |nt.modif|iers, cm|
|00003450| 64 4b 65 79 29 20 3c 3e | 20 30 20 54 48 45 4e 20 |dKey) <>| 0 THEN |
|00003460| 44 6f 43 6f 6d 6d 61 6e | 64 28 4d 65 6e 75 4b 65 |DoComman|d(MenuKe|
|00003470| 79 28 74 68 65 43 68 61 | 72 29 29 3b 0d 09 09 09 |y(theCha|r));....|
|00003480| 09 09 09 45 4e 44 3b 20 | 7b 6f 66 20 6b 65 79 44 |...END; |{of keyD|
|00003490| 6f 77 6e 20 61 6e 64 20 | 61 75 74 6f 4b 65 79 7d |own and |autoKey}|
|000034a0| 0d 0d 09 09 09 45 4e 44 | 3b 20 7b 6f 66 20 65 76 |.....END|; {of ev|
|000034b0| 65 6e 74 20 43 41 53 45 | 7d 0d 0d 09 09 09 7b 20 |ent CASE|}.....{ |
|000034c0| 49 66 20 77 65 20 68 61 | 76 65 20 6d 65 6e 75 20 |If we ha|ve menu |
|000034d0| 69 74 65 6d 20 63 68 65 | 63 6b 65 64 2c 20 67 6f |item che|cked, go|
|000034e0| 20 61 68 65 61 64 20 61 | 6e 64 20 61 6e 69 6d 61 | ahead a|nd anima|
|000034f0| 74 65 20 63 6f 6c 6f 72 | 73 2e 20 7d 0d 09 09 49 |te color|s. }...I|
|00003500| 46 20 74 75 62 65 43 68 | 65 63 6b 20 54 48 45 4e |F tubeCh|eck THEN|
|00003510| 20 53 68 69 66 74 79 43 | 6f 6c 6f 72 73 3b 0d 09 | ShiftyC|olors;..|
|00003520| 09 0d 09 55 4e 54 49 4c | 20 64 6f 6e 65 46 6c 61 |...UNTIL| doneFla|
|00003530| 67 3b 0d 0d 09 09 7b 20 | 63 6c 65 61 6e 20 75 70 |g;....{ |clean up|
|00003540| 20 61 66 74 65 72 20 70 | 61 6c 65 74 74 65 20 6d | after p|alette m|
|00003550| 61 6e 61 67 65 72 2c 20 | 73 6f 20 68 65 20 63 61 |anager, |so he ca|
|00003560| 6e 20 63 68 75 63 6b 20 | 74 68 65 20 70 61 6c 65 |n chuck |the pale|
|00003570| 74 74 65 20 69 6e 20 75 | 73 65 2e 20 7d 0d 09 44 |tte in u|se. }..D|
|00003580| 69 73 70 6f 73 65 57 69 | 6e 64 6f 77 20 28 6d 79 |isposeWi|ndow (my|
|00003590| 57 69 6e 64 6f 77 29 3b | 0d 09 0d 45 4e 44 2e 0d |Window);|...END..|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00003610| 2c 78 b4 00 2b d9 20 00 | 41 7a 12 00 2a ed de 40 |,x..+. .|Az..*..@|
|00003620| 80 65 5c 00 3d ea 86 00 | 00 00 07 00 00 00 00 01 |.e\.=...|........|
|00003630| 0a 54 75 62 65 54 65 73 | 74 2e 70 54 02 00 00 00 |.TubeTes|t.pT....|
|00003640| 54 45 58 54 4d 50 53 20 | 01 00 00 00 01 40 00 00 |TEXTMPS |.....@..|
|00003650| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 01 40 |..TEXTMP|S .....@|
|00003660| 00 00 01 b6 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003670| 00 00 9e e9 88 cb 00 00 | 35 20 00 00 01 7e ff 00 |........|5 ...~..|
|00003680| 00 00 6d 00 00 00 00 00 | 02 ff ff 00 00 bc 33 00 |..m.....|......3.|
|00003690| 00 00 00 00 06 ff ff 00 | 00 bd 23 00 00 00 00 00 |........|..#.....|
|000036a0| 00 ff ff 00 00 be 27 00 | 00 00 00 48 c0 2f 00 ff |......'.|...H./..|
|000036b0| ff ff ff 01 00 00 32 00 | 3e 12 78 00 00 00 00 01 |......2.|>.x.....|
|000036c0| 00 06 ad 00 00 00 82 01 | 00 bb c2 00 00 00 00 9e |........|........|
|000036d0| dd 87 fb 00 94 00 2d a2 | f4 f1 07 00 4b 4e ad 0c |......-.|....KN..|
|000036e0| f2 01 00 00 5a 01 00 45 | be ff ff ff ff 00 00 00 |....Z..E|........|
|000036f0| 10 01 00 00 04 ff ff ff | ff de 98 48 c0 00 6e 31 |........|...H..n1|
|00003700| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 2d 2d 2d |...H..Mo|naco.---|
|00003710| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00003720| 2d 2d 2d 2d 2d 2d 00 06 | 00 04 00 27 00 00 01 df |------..|...'....|
|00003730| 02 30 00 27 00 00 01 df | 02 30 9f 1a 7f 06 00 00 |.0.'....|.0......|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00003750| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 05 bb e8 |...L...L|...2....|
|00003760| 04 c8 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00003770| 00 0a 03 ed ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+